UNPKG

react-native-google-api-availability-bridge

Version:
25 lines (18 loc) 605 B
'use strict'; 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();