[英]Color of status bar using react navigation
I use React Navigation and I need to set the background color of the status bar darker than header.我使用 React Navigation,我需要将状态栏的背景颜色设置为比标题更暗。 But Android Emulator has already done this automatically, when my phone set bgColor: none .
但是当我的手机设置 bgColor: none时,Android Emulator 已经自动完成了。
If I use component StatusBar with attribute bg, I wont change bg( but I can change barStyle-_- )如果我使用带有属性 bg 的组件 StatusBar,我不会改变 bg(但我可以改变 barStyle-_- )
使用这个来更改 React Native 应用程序中状态栏的背景颜色
<StatusBar barStyle="light-content" backgroundColor="#1D6D91" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.