rni
react-native-intercom-native
npm i react-native-intercom-native
rni

react-native-intercom-native

React Native Intercom Module

by Matei Oprea

1.0.2 (see all)License:MITTypeScript:Built-In
npm i react-native-intercom-native
Readme

React Native Intercom Native

NPM downloads NPM latest version

Intercom implementation for react native

Installation

Automatic install

npm install react-native-intercom-native
npx intercom-link

If you don't want Intercom Push Notifications, you should run npx intercom along with the --disable-notification-link parameter.

Manual Installation

npm install react-native-intercom-native

You should be set up!

Usage

import Intercom from "react-native-intercom-native";

Intercom.setApiKey(
    Platform.OS === 'android'
        ? 'your_intercom_android_api_key'
        : 'your_intercom_ios_api_key',
    'your_app_id'
);

//TODO

Documentation

Check the available APIs.

Push Notifications

For configuring push notifications you should follow these steps:

iOS

On iOS you should only follow steps 1, 2, 3 and 4 from Intercom documentation that's available here.

This plugin already does the extra steps that are necessary to handle push notifications, so you should be good to go.

Android

On android you should follow steps 1, 3 and 4 (yes, without step 2) from Intercom documentation that's available here.

After you generated the google-services.json file just place it in 'your_react_native_project_root/android/app/' folder. This is it. You're done.

Hooks

//TODO

Contributing

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

License

MIT

Downloads/wk

29

GitHub Stars

25

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

2

OPEN ISSUES

7

OPEN PRs

1
VersionTagPublished
1.0.2
latest
1yr ago
No alternatives found
No tutorials found
Add a tutorial