react-native-play-services
Version:
Use Google Play Services API in React Native.
18 lines (16 loc) • 489 B
TypeScript
type GooglePlayServicesStatus = {
AVAILABLE: 10,
GMS_DISABLED: 20,
GMS_NEED_UPDATE: 30,
INVALID: 30
};
declare module "react-native-play-services" {
const GooglePlayServicesStatus: GooglePlayServicesStatus;
const checkPlayServicesStatus: () => Promise<GooglePlayServicesStatus>;
const sync: (params: {
onGmsDisabled?: () => void
onGmsNeedUpdate?: () => void
}) => Promise<void>;
const goToSetting: () => Promise<void>;
const goToMarket: () => Promise<void>;
}