Skip to content

Commit

Permalink
Fix status bar disappear when presenting native camera screen on iOS (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Sep 15, 2019
1 parent e192e31 commit 58c76e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ios/UIViewController+LayoutProtocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ - (void)overrideOptions:(RNNNavigationOptions *)options {
}

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

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

0 comments on commit 58c76e1

Please sign in to comment.