Parcourir la source

Fix sideMenu orientation options (#4995)

Yogev Ben David il y a 5 ans
Parent
révision
0e1a35d467
No account linked to committer's email address
2 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 4
    0
      lib/ios/RNNSideMenuChildVC.m
  2. 4
    0
      lib/ios/RNNSideMenuController.m

+ 4
- 0
lib/ios/RNNSideMenuChildVC.m Voir le fichier

@@ -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 Voir le fichier

@@ -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: