mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-21 13:13:58 +08:00
add currentversioninfo
This commit is contained in:
@@ -28,11 +28,17 @@ export const UpdateContext = createContext<{
|
||||
dismissError: () => void;
|
||||
downloadUpdate: () => Promise<boolean | void>;
|
||||
downloadAndInstallApk: (url: string) => Promise<void>;
|
||||
// @deprecated use currentVersionInfo instead
|
||||
getCurrentVersionInfo: () => Promise<{
|
||||
name?: string;
|
||||
description?: string;
|
||||
metaInfo?: string;
|
||||
}>;
|
||||
currentVersionInfo: {
|
||||
name?: string;
|
||||
description?: string;
|
||||
metaInfo?: string;
|
||||
} | null;
|
||||
parseTestQrCode: (code: string) => boolean;
|
||||
restartApp: () => Promise<void>;
|
||||
currentHash: string;
|
||||
|
||||
Reference in New Issue
Block a user