I use React Navigation and I need to set the background color of the status bar darker than header. But Android Emulator has already done this automatically, when my phone set bgColor: none .
If I use component StatusBar with attribute bg, I wont change bg( but I can change barStyle-_- )
使用这个来更改 React Native 应用程序中状态栏的背景颜色
<StatusBar barStyle="light-content" backgroundColor="#1D6D91" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.