El encabezado se representa arriba en la parte superior del menú lateral del cajón
Cuando abro el cajón, los íconos de encabezado y el borde aún están visibles sobre el menú lateral del cajón. el icono de menú y el logotipo siguen apareciendo incluso si el cajón está abierto. He usado el navegador de pilas y el navegador de cajones.
const DrawerNav = DrawerNavigator({
WEB: { screen: ScanScreen },
},{
initialRouteName: 'WEB',
drawerPosition: 'right',
});
const PrimaryNav = StackNavigator({
LoginScreen: { screen: LoginScreen, navigationOptions : {header: null} },
DrawerNav: { screen: DrawerNav },
}, {
headerMode: 'float',
navigationOptions: ({navigation}) => ({
initialRouteName: 'LoginScreen',
headerTransparent: true,
headerStyle: styles.header,
headerTitleStyle : styles.headerTitleStyle,
headerBackTitleStyle : styles.headerBackTitleStyle,
headerLeft: <Image source={Images.logo_splash} style={styles.logo} />,
headerRight: <TouchableOpacity onPress={() => navigation.navigate('DrawerToggle')}>
<Image source={Images.icon_navigation} style={styles.menu}/>
</TouchableOpacity>
})
});
StyleSheet.create({
header: {
backgroundColor: Colors.clear,
borderBottomColor : Colors.pinkDark,
borderBottomWidth: 0.5,
},
headerTitleStyle : {
color: Colors.white
},
headerBackTitleStyle : {
color: Colors.white
},
logo: {
height:30,
width:55,
resizeMode: 'contain',
},
menu: {
height:20,
width:60,
resizeMode: 'contain',
},
})
Mostrar la mejor respuesta