react-native-chrome-hms
v1.3.0
Published
## Getting started
Downloads
43
Readme
react-native-chrome-hms
Getting started
$ npm install react-native-chrome-hms --save
Mostly automatic installation
$ react-native link react-native-chrome-hms
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNChromeHmsPackage;
to the imports at the top of the file - Add
new RNChromeHmsPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-chrome-hms' project(':react-native-chrome-hms').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-chrome-hms/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-chrome-hms')
Usage
import RNChromeHms from 'react-native-chrome-hms';
// TODO: What to do with the module?
RNChromeHms;