mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 10:21:37 +08:00
Update provider.tsx
This commit is contained in:
@@ -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') {
|
||||||
|
Reference in New Issue
Block a user