Skip to content

Commit 58c76e1

Browse files
authored
Fix status bar disappear when presenting native camera screen on iOS (#5486)
1 parent e192e31 commit 58c76e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ios/UIViewController+LayoutProtocol.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ - (void)overrideOptions:(RNNNavigationOptions *)options {
4848
}
4949

5050
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
51-
return [self.presenter getOrientation:[self resolveOptions]];
51+
UIInterfaceOrientationMask interfaceOrientationMask = self.presenter ? [self.presenter getOrientation:[self resolveOptions]] : [[UIApplication sharedApplication] supportedInterfaceOrientationsForWindow:[[UIApplication sharedApplication] keyWindow]];
52+
return interfaceOrientationMask;
5253
}
5354

5455
- (void)renderTreeAndWait:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock {

0 commit comments

Comments
 (0)