keep navigation drawer locked in the closed state on the search screen

This commit is contained in:
Akinwale Ariwodola 2018-04-23 10:34:45 +01:00
parent 496ec53f8a
commit 1366dc0996

View file

@ -40,6 +40,7 @@ const discoverStack = StackNavigator({
Search: {
screen: SearchPage,
navigationOptions: ({ navigation }) => ({
drawerLockMode: 'locked-closed',
headerTitle: <SearchInput style={searchStyle.searchInput} />,
headerRight: <Feather name="x" size={24} style={discoverStyle.rightHeaderIcon} onPress={() => navigation.dispatch(NavigationActions.back())} />
})