Skip to content

Instantly share code, notes, and snippets.

@anastely
Created July 12, 2019 20:07
Show Gist options
  • Save anastely/b1b9dfd723c701d378eae262d7266c54 to your computer and use it in GitHub Desktop.
Save anastely/b1b9dfd723c701d378eae262d7266c54 to your computer and use it in GitHub Desktop.
MyOrders top part
const OrdersStack = createStackNavigator({
Orders: {
screen: Orders,
navigationOptions: ({ navigation }) => ({
headerLeft: (
// <TouchableOpacity onPress={() => navigation.dispatch(DrawerActions.toggleDrawer())}>
<TouchableOpacity
onPress={() => navigation.dispatch(DrawerActions.toggleDrawer())}
>
<Icon
name="ios-menu"
size={40}
style={{ margin: 10 }}
color="#2F98AE"
/>
</TouchableOpacity>
),
headerRight: <View />,
title: "My Orders",
headerTintColor: "#2F98AE",
headerStyle: {
borderBottomColor: "white"
},
headerTitleStyle: {
color: "#2F98AE",
// textAlign: "center",
flex: 1,
elevation: 0,
fontSize: 25
// justifyContent: "center"
}
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment