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