https://github.com/segmentio/analytics-react-native-ecommerce-samples
https://github.com/segmentio/analytics-react-native-ecommerce-samples
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/segmentio/analytics-react-native-ecommerce-samples
- Owner: segmentio
- License: mit
- Created: 2022-06-28T19:36:28.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-07T22:14:03.000Z (over 1 year ago)
- Last Synced: 2025-08-07T10:21:04.671Z (11 months ago)
- Language: TypeScript
- Size: 1.83 MB
- Stars: 2
- Watchers: 1
- Forks: 7
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Analytics React Native E-Commerce Samples
The apps in this repository were built in conjunction with the [Implementing React Native 2.0 blog post](https://segment.com/blog/analytics-react-native-2-blog/). Check out the blog for a detailed overview of the new architecture and complete implementation guide.
## Usage
1. Navigate to one of the app directories (ie. `starter-app-ecommerce`)
⚠️ If you are using `final-app-ecommerce` be sure to add your write-key in `App.tsx`
```
const segmentClient = createClient({
writeKey: 'WRITE_KEY',
trackAppLifecycleEvents: true,
collectDeviceId: true,
});
```
2. Install dependencies
```sh
yarn
```
3. Install pods
```sh
cd ios && pod install
```
```sh
cd ..
```
4. Build and run
**iOS**
```sh
yarn ios
```
**Android**
```sh
yarn android
```
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## Code of Conduct
Before contributing, please also see our [code of conduct](CODE_OF_CONDUCT.md).
## License
MIT