react-native-google-api-availability-bridge
Version:
Check google play services version
25 lines (18 loc) • 605 B
JavaScript
;
var ReactNative = require('react-native')
var Platform = ReactNative.Platform
var GoogleAPIAvailability = ReactNative.NativeModules.ReactNativeGooglePlayServices;
class ReactNativeGoogleAPIAvailabilityBridge {
constructor() {
}
checkGooglePlayServices(result) {
return GoogleAPIAvailability.checkGooglePlayServices(result);
}
promptGooglePlayUpdate(allowUse) {
return GoogleAPIAvailability.promptGooglePlayUpdate(allowUse);
}
openGooglePlayUpdate() {
return GoogleAPIAvailability.openGooglePlayUpdate();
}
}
module.exports = new ReactNativeGoogleAPIAvailabilityBridge();