mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 10:35:17 +08:00
delay markSuccess
This commit is contained in:
@@ -247,7 +247,9 @@ export const UpdateProvider = ({
|
||||
}
|
||||
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
|
||||
if (autoMarkSuccess) {
|
||||
markSuccess();
|
||||
setTimeout(() => {
|
||||
markSuccess();
|
||||
}, 1000);
|
||||
}
|
||||
if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {
|
||||
stateListener.current = AppState.addEventListener(
|
||||
|
Reference in New Issue
Block a user