react-native-intercom-expo-config-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.13.0 • Public • Published

Expo Config Plugin @intercom/intercom-react-native

An Expo config plugin for easily setting up React Native Intercom

Installation

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 react-native-intercom-expo-config-plugin

Without expo install

# using yarn
yarn add react-native-intercom-expo-config-plugin

# using npm
npm install react-native-intercom-expo-config-plugin

Open your app.json and update your plugins section (expo install would do it for you):

{
  "plugins": ["react-native-intercom-expo-config-plugin"]
}

Configuration

The plugin needs your intercom api key so that it can communicate with the intercom application.

{
  "plugins": [
    [
      "react-native-intercom-expo-config-plugin",
      {
        "iosApiKey": "<your-api-key>",
        "androidApiKey": "<your-api-key>",
        "appId": "<your-app-id>",
        "isPushNotificationsEnabledIOS": "<boolean>"
      }
    ]
  ]
}

Other configuration options

Add a custom photo usage description
{
  "plugins": [
    [
      "react-native-intercom-expo-config-plugin",
      {
        //...
        "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.

Credits

License

MIT

Package Sidebar

Install

npm i react-native-intercom-expo-config-plugin

Weekly Downloads

51

Version

1.13.0

License

MIT*

Unpacked Size

40.4 kB

Total Files

18

Last publish

Collaborators

  • alfayez-dev
  • aljadan
  • wadhahessam
  • ahmed.alsaif
  • saud.elabdullah
  • mzaien