react-native-rn-in-app-update
Version:
A minimal React Native module that displays the native Android in-app update popup using the Play Core library. Supports both immediate and flexible update types.
11 lines • 573 B
TypeScript
/**
* Shows the native Android in-app update popup using the Play Core API.
*
* @param type - (Optional) The update type to use:
* - `'immediate'` (default): Forces the user to update immediately before continuing.
* - `'flexible'`: Allows the user to continue using the app while the update is downloaded in the background.
*
* @returns A Promise that resolves when the update flow is started, or rejects if not available or fails.
*/
export declare const showUpdatePopup: (type?: "immediate" | "flexible") => Promise<void>;
//# sourceMappingURL=index.d.ts.map