1.0.3 • Published 5 years ago

react-native-weward-background-pedometer v1.0.3

Weekly downloads
12
License
-
Repository
-
Last release
5 years ago

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

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