This is an App that simulates Leo's Music Store in React Native, integrating React Native with Segment.
To get started with React Native and Segment, you should perform the following steps:
-
Install Expo
-
Initialize a React Native Application (preferrably in TypeScript)
-
Install Segment for React Native
yarn add @segment/analytics-react-native @segment/sovran-react-native @react-native-async-storage/async-storage
-
Generate native project with prebuild. This is required by Segment library:
npx expo run:ios
Or
npx expo run:android
Depending on your react-native version, you'll need to eject Expo instead. Nowadays this is considered deprecated, but depending on the version used that can be a solution.