1.3.7 • Published 6 years ago
react-native-oui-pedometer v1.3.7
react-native-oui-pedometer
Getting started
$ npm install react-native-oui-pedometer --save
$ react-native link react-native-oui-pedometer
Usage
import Pedometer from 'react-native-oui-pedometer'
Pedometer.isAvailable().then(isAvailable => {
// Whether the device has step counting capabilities.
})
Pedometer.authorizationStatus().then(authorizationStatus => {
// iOS only
//
// The authorization status as a string:
// - "not_determined"
// - "denied"
// - "authorized"
//
// Always "authorized" for Android.
})
Pedometer.requestAuthorization().then(() => {
// iOS only
//
// Request the user authorization to read the number of steps from Health Kit.
//
// Return directly on Android.
})
Pedometer.getNumberOfSteps().then(numberOfSteps => {
// Get the number of steps since a fixed moment in time.
})
1.3.7
6 years ago
1.3.5
6 years ago
1.3.4
6 years ago
1.3.3
6 years ago
1.3.2
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
2.0.0
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago