react-native-acc-fcm

## Getting started

Usage no npm install needed!

<script type="module">
  import reactNativeAccFcm from 'https://cdn.skypack.dev/react-native-acc-fcm';
</script>

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

  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';