1.3.0 • Published 4 years ago

react-native-acc-fcm v1.3.0

Weekly downloads
80
License
ISC
Repository
-
Last release
4 years ago

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

  1. 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 the getPackages() method
  1. 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')
  2. 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';