Bläddra i källkod

Fix sideMenu orientation options (#4995)

Yogev Ben David 5 år sedan
förälder
incheckning
0e1a35d467
No account linked to committer's email address
2 ändrade filer med 8 tillägg och 0 borttagningar
  1. 4
    0
      lib/ios/RNNSideMenuChildVC.m
  2. 4
    0
      lib/ios/RNNSideMenuController.m

+ 4
- 0
lib/ios/RNNSideMenuChildVC.m Visa fil

@@ -60,4 +60,8 @@
60 60
 	return self.child.preferredStatusBarStyle;
61 61
 }
62 62
 
63
+- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
64
+	return self.child.supportedInterfaceOrientations;
65
+}
66
+
63 67
 @end

+ 4
- 0
lib/ios/RNNSideMenuController.m Visa fil

@@ -119,6 +119,10 @@
119 119
 	return self.openedViewController.preferredStatusBarStyle;
120 120
 }
121 121
 
122
+- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
123
+	return self.openedViewController.supportedInterfaceOrientations;
124
+}
125
+
122 126
 - (UIViewController *)openedViewController {
123 127
 	switch (self.openSide) {
124 128
 		case MMDrawerSideNone: