1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-12-21 13:13:58 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

feat: add progress

This commit is contained in:
sunnylqm
2024-02-08 21:44:21 +08:00
parent d9e4575964
commit 6c1662fce1
4 changed files with 22 additions and 7 deletions

View File

@@ -12,6 +12,7 @@ export const defaultContext = {
markSuccess: noop,
dismissError: noop,
downloadUpdate: noop,
downloadAndInstallApk: noop,
currentHash: '',
packageVersion: '',
};
@@ -23,6 +24,7 @@ export const PushyContext = createContext<{
markSuccess: () => void;
dismissError: () => void;
downloadUpdate: () => void;
downloadAndInstallApk: (url: string) => void;
currentHash: string;
packageVersion: string;
client?: Pushy;