Config plugin for intercom-react-native package
npm install config-plugin-react-native-intercom@intercom/intercom-react-nativeAn Expo config plugin for easily setting up React Native Intercom
#### Prerequisites
- App project using Expo SDK 41+.
- Installed expo-cli@4.4.4 or later.
- Installed @intercom/intercom-react-native JavaScript libraries:
#### With expo install
```
expo install config-plugin-react-native-intercom
#### Without expo install
`shusing yarn
yarn add config-plugin-react-native-intercom
Open your
app.json and update your plugins section (expo install would do it for you):`json
{
"plugins": ["config-plugin-react-native-intercom"]
}
`Configuration
The plugin needs your intercom api key so that it can communicate with the intercom application.
`json
{
"plugins": [
[
"config-plugin-react-native-intercom",
{
"iosApiKey": "",
"androidApiKey": "",
"appId": "",
"isPushNotificationsEnabledIOS": ""
}
]
]
}
`$3
Add a custom photo usage description
`json
{
"plugins": [
[
"config-plugin-react-native-intercom",
{
//...
"iosPhotoUsageDescription": "Upload to support center"
}
]
]
}
`Building and running
You can either:
- use
expo prebuild or expo run:android/expo run:ios to update your native projects,
- use _EAS Build_ to build your development client.Contributing
Contributions are very welcome! The package uses
expo-module-scripts for most tasks. You can find detailed information at this link.Please make sure to run
yarn build/yarn rebuild to update the build` directory before pushing. The CI will fail otherwise.- _the Expo team_
- @barthap -
-
MIT