mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 12:35:14 +08:00
delay markSuccess
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user