Browse Source

Fix sideMenu orientation options (#4995)

Yogev Ben David 5 years ago
parent
commit
0e1a35d467
No account linked to committer's email address
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      lib/ios/RNNSideMenuChildVC.m
  2. 4
    0
      lib/ios/RNNSideMenuController.m

+ 4
- 0
lib/ios/RNNSideMenuChildVC.m View File

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

+ 4
- 0
lib/ios/RNNSideMenuController.m View File

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