import { trackEvent } from '@redux-beacon/react-native-segment';
const event = trackEvent((action, prevState, nextState) => {
return {
name: /* fill me in */,
properties: /* (optional) */,
};
});
alias
Docs:
import { setAlias } from '@redux-beacon/react-native-segment';
const alias = setAlias((action, prevState, nextState) => {
return {
userId: /* fill me in */,
};
});
group
Docs:
import { setGroup } from '@redux-beacon/react-native-segment';
const group = setGroup((action, prevState, nextState) => {
return {
groupId: /* fill me in */,
traits: /* (optional) */,
};
});
identify
Docs:
import { identifyUser } from '@redux-beacon/react-native-segment';
const user = identifyUser((action, prevState, nextState) => {
return {
userId: /* fill me in */,
traits: /* (optional) */,
};
});
reset
Docs:
import { reset } from '@redux-beacon/react-native-segment';
const resetRequest = reset();
Don't see your event listed? Please submit a pull request to the with the missing event. Use the source of the existing event-helpers to guide your work. If you need any support feel free to make the pull request with all you're able to do. We can fill in the gaps from there.