【发布时间】:2022-11-28 22:23:03
【问题描述】:
在我的应用程序中,大多数应用程序的背景颜色设置为白色,因此,我想将状态栏设置为黑色,根据文档,这应该有效:
<StatusBar barStyle={'dark-content'} translucent={true} />
我能做些什么来解决这个问题?
【问题讨论】:
标签: android react-native statusbar
在我的应用程序中,大多数应用程序的背景颜色设置为白色,因此,我想将状态栏设置为黑色,根据文档,这应该有效:
<StatusBar barStyle={'dark-content'} translucent={true} />
我能做些什么来解决这个问题?
【问题讨论】:
标签: android react-native statusbar
尝试添加 backgroundColor 道具并更改您需要的颜色, :)
<StatusBar backgroundColor="#000000" barStyle="light-content" />
【讨论】:
推杆
<StatusBar backgroundColor="#000000" barStyle="light-content" />
为我工作
【讨论】: