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