Status bar ios height8/27/2023 ![]() On the other hand, jailbreakers can take control of their devices and have their Status Bar do so much more. ![]() ![]() ![]() You can use it safely import React, from 'react-native-status-bar-height' Īnd update the STATUS_BAR_HEIGHT like this: const STATUS_BAR_HEIGHT = Platform.OS = 'ios' ? getStatusBarHeight() : 0 įinally, I also changed the height for Android to 0, because it was affecting the NavigationBar's height, but if it is working well for you, you can keep it the same. Jailbroken or not, the Status Bar is an essential part of your iPhone that lest you keep track of your battery level, wireless signal, and time. React-Native does not support background color change of StatusBar on iOS platform but on Android platform, it's ok (). const STATUSBARHEIGHT Platform.OS ios getStatusBarHeight() : 0 Finally, I also changed the height for Android to 0, because it was affecting the NavigationBars height, but if it is working well for you, you can keep it the same.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |