react-native-modalize
react-native-modalize copied to clipboard
Status bar background color
Hello,
How can I change the statusbar color or is there a alternative like statusbartranslucent ? And how can I change the overlay ? My react navigation header is white If I open modal
Anyone found a solution for this? Stuck with this too on Android!
same problem +1
news
This is what I added to one of the modalize causing some issues with the StatusBar:
<Modalize
onOpen={() => {
if (Platform.OS === 'android') StatusBar.setBackgroundColor('#000', true);
}
onClose={() => {
if (Platform.OS === 'android') StatusBar.setBackgroundColor('#FFF', true);
}
>
{/* Content Here */}
</Modalize>
<Modalize
onOpen={() => {
if (Platform.OS === "android") {
StatusBar.setBackgroundColor("rgba(0, 0, 0, 0.65)", true);
StatusBar.setBarStyle("light-content");
}
}}
onClose={() => {
if (Platform.OS === "android") {
StatusBar.setBackgroundColor(Colors.white, true);
StatusBar.setBarStyle("dark-content");
}
}}
>
{/* Content Here */}
</Modalize>;