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