gpt4 book ai didi

reactjs - 抽屉导航器 : Change Background Color

转载 作者:行者123 更新时间:2023-12-02 12:15:17 25 4
gpt4 key购买 nike

react-navigationDrawerNavigator上,有没有办法改变背景颜色?

默认情况下,配色方案如下所示: react-navigation color

由以下内容初始化:

export const Drawer = DrawerNavigator({
dOne: {
screen: Screen1,
},
dTwo: {
screen: Screen2,
}
}
);

最佳答案

<Drawer.Navigator
screenOptions={{
drawerStyle: {
backgroundColor: '#c6cbef',
width: 240,
},
}}
>
{/* screens */}
</Drawer.Navigator>

您可以查看https://reactnavigation.org/docs/screen-options/

关于reactjs - 抽屉导航器 : Change Background Color,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44851867/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com