From 0d1607545d17650e766eebf51eee36409b1bfc2a Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Tue, 14 Nov 2017 18:18:47 -0200 Subject: [PATCH] iOS: Disabled drawer slide gesture --- app/containers/routes/AuthRoutes.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/containers/routes/AuthRoutes.js b/app/containers/routes/AuthRoutes.js index 1e52274e4..be5822652 100644 --- a/app/containers/routes/AuthRoutes.js +++ b/app/containers/routes/AuthRoutes.js @@ -1,4 +1,5 @@ import React from 'react'; +import { Platform } from 'react-native'; import { StackNavigator, DrawerNavigator, NavigationActions, HeaderBackButton } from 'react-navigation'; import Sidebar from '../../containers/Sidebar'; @@ -76,7 +77,10 @@ const Routes = DrawerNavigator( }, { contentComponent: Sidebar, - drawerPosition + drawerPosition, + navigationOptions: { + drawerLockMode: Platform.OS === 'ios' ? 'locked-closed' : 'unlocked' + } } );