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

Update provider.tsx

This commit is contained in:
Sunny Luo
2024-09-30 21:25:08 +08:00
committed by GitHub
parent b71626d7d4
commit 2467b0c119

View File

@@ -15,7 +15,6 @@ import {
import { Pushy } from './client';
import {
currentVersion,
isFirstTime,
packageVersion,
getCurrentVersionInfo,
} from './core';
@@ -246,7 +245,7 @@ export const PushyProvider = ({
return;
}
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
if (isFirstTime && autoMarkSuccess) {
if (autoMarkSuccess) {
markSuccess();
}
if (checkStrategy === 'both' || checkStrategy === 'onAppResume') {