To get started with the @intercom/intercom-react-native example app, please follow the instructions below:
-
Install XCode before you setup the app.
-
Setup the app using:
./script/setup
This command will install all the dependencies required to run the example app.
- Generate a new .env file by running the following command in your terminal:
sh scripts/generateEnv.sh
This command will create a .env file inside the example directory. Fill in the required App ID in the .env file. Other variables are optional.
Please set up your React Native Development Environment for Android as described in the guide below (if you didn't do it before):
To run the app on Android, execute the following command:
yarn example android
To run the app on Android, execute the following command:
yarn example ios
- If you are facing issues related to pods, you can install them separately using:
pod install
-
For issues related to android, try opening and running the example app from the android studio.
-
For general iOS build errors, opening and running the example app from XCode also helps.