React native 如何从react navigation drawer v5覆盖背景不透明度
问题是,当我打开抽屉时,除了抽屉外,所有屏幕上的背景都会不透明 我想做什么:我想删除标题中的背景不透明度。并显示不透明度为1的标题(以常规样式显示) 我在抽屉里加了一部分,我不知道这是否有助于回答这个问题React native 如何从react navigation drawer v5覆盖背景不透明度,react-native,react-navigation-v5,react-navigation-stack,react-navigation-drawer,React Native,React Navigation V5,React Navigation Stack,React Navigation Drawer,问题是,当我打开抽屉时,除了抽屉外,所有屏幕上的背景都会不透明 我想做什么:我想删除标题中的背景不透明度。并显示不透明度为1的标题(以常规样式显示) 我在抽屉里加了一部分,我不知道这是否有助于回答这个问题 export const DrawerNavigator = () => { return ( <Drawer.Navigator drawerStyle={styles.drawerStyle} drawerContent={prop
export const DrawerNavigator = () => {
return (
<Drawer.Navigator drawerStyle={styles.drawerStyle} drawerContent={props => <DrawerContent
{...props} />}>
<Drawer.Screen name="Main" component={MainStackScreen} />
</Drawer.Navigator>
);
};
const styles = StyleSheet.create({
drawerStyle: {
marginTop: 82,
borderColor: "#1d2731",
borderWidth: 1,
backgroundColor: "#d9b310",
borderBottomRightRadius: 30,
},
export const DrawerNavigator=()=>{
返回(
}>
);
};
const styles=StyleSheet.create({
抽屉样式:{
玛金托普:82,
边框颜色:“1d2731”,
边框宽度:1,
背景色:“d9b310”,
边界半径:30,
},