To get started with the @intercom/intercom-react-native example app, please follow the instructions below:
- Generate a new .env file by running the following command in your terminal:
sh scripts/generateEnv.shThis command will create a .env file inside the example directory.
-
Fill in the required Android and iOS API keys and workspace IDs in the .env file. Other variables are optional.
-
Install the dependencies by running the following command in the project directory:
yarnTo run the app on Android, execute the following command:
yarn example android --variant=fossDebugFor iOS, you need to install the necessary pods. Go to the example/ios directory in your terminal and run:
pod installOnce the pods are installed, go back to the project's root directory and execute the following command to run the app on iOS:
yarn example iosPlease note that there is a known bug that prevents the iOS app from building on the latest Xcode. Therefore, it's recommended to use Xcode 14.2.