Skip to content

Instantly share code, notes, and snippets.

@mauriciopazpp
Created July 11, 2018 02:22
Embed
What would you like to do?
DrawerButton react native
const DrawerButton = (props) => {
return (
<View>
<TouchableOpacity onPress={() => {props.navigation.navigate('DrawerOpen')}}>
<Image
source={require('../img/iconImage.png')}
style={styles.icon}
/>
</TouchableOpacity>
</View>
);
};
const main_stack_nav = StackNavigator({
CategoryList: {
screen: RecipesCategoryList,
navigationOptions: ({navigation}) => ({
title: "Category List",
headerLeft: <DrawerButton navigation={navigation} />
}),
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment