File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { logWithoutTracing } from './utils';
3535import  {  ErrorEvent  }  from  '@sentry/types' ; 
3636import  HeavyNavigationScreen  from  './Screens/HeavyNavigationScreen' ; 
3737import  WebviewScreen  from  './Screens/WebviewScreen' ; 
38+ import  {  isTurboModuleEnabled  }  from  '@sentry/react-native/dist/js/utils/environment' ; 
3839
3940LogBox . ignoreAllLogs ( ) ; 
4041const  isMobileOs  =  Platform . OS  ===  'android'  ||  Platform . OS  ===  'ios' ; 
@@ -91,6 +92,13 @@ Sentry.init({
9192      Sentry . appStartIntegration ( { 
9293        standalone : false , 
9394      } ) , 
95+       Sentry . reactNativeErrorHandlersIntegration ( { 
96+         patchGlobalPromise : Platform . OS  ===  'ios'  &&  isTurboModuleEnabled ( ) 
97+           // The global patch doesn't work on iOS with the New Architecture in this Sample app 
98+           // In 
99+           ? false 
100+           : true , 
101+       } ) , 
94102    ) ; 
95103    return  integrations . filter ( i  =>  i . name  !==  'Dedupe' ) ; 
96104  } , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments