iOS: Disabled drawer slide gesture

This commit is contained in:
Rodrigo Nascimento 2017-11-14 18:18:47 -02:00
parent 4e769920a1
commit 0d1607545d
No known key found for this signature in database
GPG Key ID: CFCE33B7B01AC335
1 changed files with 5 additions and 1 deletions

View File

@ -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'
}
}
);