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

delay markSuccess

This commit is contained in:
sunnylqm
2025-03-11 14:36:11 +08:00
parent 26924d7e6c
commit d5fd6c006d

View File

@@ -247,7 +247,9 @@ export const UpdateProvider = ({
} }
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options; const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
if (autoMarkSuccess) { if (autoMarkSuccess) {
markSuccess(); setTimeout(() => {
markSuccess();
}, 1000);
} }
if (checkStrategy === 'both' || checkStrategy === 'onAppResume') { if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {
stateListener.current = AppState.addEventListener( stateListener.current = AppState.addEventListener(