README
react-native-react-native-acc-fcm
Getting started
$ npm install react-native-acc-fcm --save
Mostly automatic installation
$ react-native link react-native-acc-fcm
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.accengage.react.plugin.RNAccFcmPackage;
to the imports at the top of the file - Add
new RNAccFcmPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-acc-fcm' project(':react-native-acc-fcm').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-acc-fcm/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-acc-fcm')
Usage
import RNAccFcm from 'react-native-acc-fcm';