This is a usage sample of Segment library
- Amplitude
- Create a project in Segment
- Add React Native as a source
- Create an API Key in
https://app.segment.com/{project}/sources/react_native/settings/keys
(Please replace{project}
with your project name)
yarn
cd ios && pod install
- Enter in
App.js
and replace ADD_YOUR_KEY_HERE with your ownwriteKey
provided by create segment step
yarn ios
yarn android