iOS: Disabled drawer slide gesture (#81)
This commit is contained in:
parent
114c9727ce
commit
675a61caba
|
@ -1,4 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { Platform } from 'react-native';
|
||||||
import { StackNavigator, DrawerNavigator, NavigationActions, HeaderBackButton } from 'react-navigation';
|
import { StackNavigator, DrawerNavigator, NavigationActions, HeaderBackButton } from 'react-navigation';
|
||||||
|
|
||||||
import Sidebar from '../../containers/Sidebar';
|
import Sidebar from '../../containers/Sidebar';
|
||||||
|
@ -76,7 +77,10 @@ const Routes = DrawerNavigator(
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
contentComponent: Sidebar,
|
contentComponent: Sidebar,
|
||||||
drawerPosition
|
drawerPosition,
|
||||||
|
navigationOptions: {
|
||||||
|
drawerLockMode: Platform.OS === 'ios' ? 'locked-closed' : 'unlocked'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue