Files
App/patches/react-native-screens+4.18.0.patch
Violet Caulfield b6df13bcc3 Stuck in Info Tab in Settings, Update Deps (#571)
update deps (nitro-modules, screens, navigation)

fix issue where going to the info tab of the app settings would lock the user in place
2025-10-22 21:50:16 -05:00

18 lines
724 B
Diff

diff --git a/node_modules/react-native-screens/ios/RNSScreen.mm b/node_modules/react-native-screens/ios/RNSScreen.mm
index 65c18f1..e11b806 100644
--- a/node_modules/react-native-screens/ios/RNSScreen.mm
+++ b/node_modules/react-native-screens/ios/RNSScreen.mm
@@ -928,7 +928,11 @@ - (BOOL)isTransparentModal
- (void)invalidate
{
_controller = nil;
- [_sheetsScrollView removeObserver:self forKeyPath:@"bounds" context:nil];
+ @try {
+ [_sheetsScrollView removeObserver:self forKeyPath:@"bounds" context:nil];
+ } @catch (NSException *exception) {
+ RCTLogWarn(@"[RNScreens] Tried to remove observer in invalidate, but it was not registered: %@.", exception);
+ }
}
#if !TARGET_OS_TV && !TARGET_OS_VISION