Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.04 KB

File metadata and controls

56 lines (38 loc) · 1.04 KB

Analytics React Native E-Commerce Samples

The apps in this repository were built in conjunction with the Implementing React Native 2.0 blog post. 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,
});
  1. Install dependencies
yarn
  1. Install pods
cd ios && pod install
cd .. 
  1. Build and run

iOS

yarn ios

Android

yarn android

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Code of Conduct

Before contributing, please also see our code of conduct.

License

MIT