diff --git a/patches/react-native+0.68.4.patch b/patches/react-native+0.68.4.patch index a1deb9620..4b259bf4f 100644 --- a/patches/react-native+0.68.4.patch +++ b/patches/react-native+0.68.4.patch @@ -1,3 +1,19 @@ +diff --git a/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm b/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm +index 8e21fa5..f9dfb5f 100644 +--- a/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm ++++ b/node_modules/react-native/React/CoreModules/RCTDeviceInfo.mm +@@ -70,6 +70,11 @@ - (void)initialize + object:nil]; + } + ++- (void)dealloc ++{ ++ [[NSNotificationCenter defaultCenter] removeObserver:self]; ++} ++ + static BOOL RCTIsIPhoneX() + { + static BOOL isIPhoneX = NO; diff --git a/node_modules/react-native/React/CoreModules/RCTTiming.mm b/node_modules/react-native/React/CoreModules/RCTTiming.mm index 13d0d57..00e5d4c 100644 --- a/node_modules/react-native/React/CoreModules/RCTTiming.mm