1.3.7 • Published 5 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
5 years ago
1.3.5
5 years ago
1.3.4
5 years ago
1.3.3
5 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
2.0.0
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago