Pārlūkot izejas kodu

[V2] Disable gesture capture when sideMenu is disabled #3651 (#3898)

By default, gestures are captures when you layout a sideMenu, regardless of whether you disable the sideMenu. This is problematic when you want to push a screen and have the swipe back gesture pop the newly pushed screen, instead of opening the drawer.

This PR simply disabled gestures when the sideMenu is disabled, and enables when the sideMenu is enabled. It resolves #3651
Rob Goldiez 6 gadus atpakaļ
vecāks
revīzija
86046eaa5f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      lib/ios/RNNSideMenuSideOptions.m

+ 1
- 0
lib/ios/RNNSideMenuSideOptions.m Parādīt failu

@@ -17,6 +17,7 @@
17 17
 				default:
18 18
 					break;
19 19
 			}
20
+			sideMenuController.sideMenu.openDrawerGestureModeMask = [self.enabled boolValue] ? MMOpenDrawerGestureModeAll : MMOpenDrawerGestureModeNone;
20 21
 		}
21 22
 
22 23
 		if (self.visible) {