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

update example

This commit is contained in:
sunnylqm
2024-06-11 10:59:27 +08:00
parent e63fa0fdb6
commit 9af0538a2a
5 changed files with 8 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ export class Pushy {
appKey: '',
server: defaultServer,
autoMarkSuccess: true,
updateStrategy: 'alwaysAsk',
updateStrategy: 'alwaysAlert',
checkStrategy: 'both',
logger: noop,
debug: false,

View File

@@ -47,7 +47,7 @@ export const PushyProvider = ({
Alert.alert(...args);
}
},
[options],
[options.updateStrategy],
);
const switchVersion = useCallback(() => {