File tree 3 files changed +5
-14
lines changed
3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 37
37
"react-native-vector-icons" : " ^10.2.0" ,
38
38
"react-native-webview" : " ^13.12.3" ,
39
39
"react-redux" : " ^8.1.3" ,
40
- "redux" : " ^4.2.1"
40
+ "redux" : " ^4.2.1" ,
41
+ "setimmediate" : " ^1.0.5"
41
42
},
42
43
"devDependencies" : {
43
44
"@babel/core" : " ^7.25.2" ,
Original file line number Diff line number Diff line change 1
- // Polyfill setImmediate if it doesn't exist
2
- if ( typeof setImmediate === 'undefined' ) {
3
- global . setImmediate = ( callback , ...args ) => {
4
- return setTimeout ( callback , 0 , ...args ) ;
5
- } ;
6
- }
7
-
8
- if ( typeof clearImmediate === 'undefined' ) {
9
- global . clearImmediate = ( id ) => {
10
- return clearTimeout ( id ) ;
11
- } ;
12
- }
13
-
14
1
import React from 'react' ;
15
2
import {
16
3
NavigationContainer ,
@@ -50,6 +37,8 @@ import HeavyNavigationScreen from './Screens/HeavyNavigationScreen';
50
37
import WebviewScreen from './Screens/WebviewScreen' ;
51
38
import { isTurboModuleEnabled } from '@sentry/react-native/dist/js/utils/environment' ;
52
39
40
+ require ( 'setimmediate' ) ;
41
+
53
42
LogBox . ignoreAllLogs ( ) ;
54
43
const isMobileOs = Platform . OS === 'android' || Platform . OS === 'ios' ;
55
44
Original file line number Diff line number Diff line change @@ -24941,6 +24941,7 @@ __metadata:
24941
24941
react-redux: ^8.1.3
24942
24942
react-test-renderer: 18.3.1
24943
24943
redux: ^4.2.1
24944
+ setimmediate: ^1.0.5
24944
24945
typescript: 5.0.4
24945
24946
languageName: unknown
24946
24947
linkType: soft
You can’t perform that action at this time.
0 commit comments