Просмотр исходного кода

Fix status bar disappear when presenting native camera screen on iOS (#5486)

Yogev Ben David 5 лет назад
Родитель
Сommit
58c76e1ec2
No account linked to committer's email address
1 измененных файлов: 2 добавлений и 1 удалений
  1. 2
    1
      lib/ios/UIViewController+LayoutProtocol.m

+ 2
- 1
lib/ios/UIViewController+LayoutProtocol.m Просмотреть файл

@@ -48,7 +48,8 @@
48 48
 }
49 49
 
50 50
 - (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;
52 53
 }
53 54
 
54 55
 - (void)renderTreeAndWait:(BOOL)wait perform:(RNNReactViewReadyCompletionBlock)readyBlock {