I'm using the React Native Drawer package. When using it, the the background color of the iOS status bar is changed to white.
Here is an example of my code:
The demo is available here: https://snack.expo.io/@dennismadsen/react-native-drawer-status-bar-issue
render() {
return (
<Drawer
ref={ref => (this._drawer = ref)}
content={<AssetExample />}
type="overlay"
styles={drawerStyles}>
<View>
<Button
onPress={this.openControlPanel}
title="Open drawer"
color="blue"
/>
</View>
</Drawer>
);
}
How can I fix this and make the background automatically use the grey background from the content area? If I remove the Drawer
from the render-method the background color of the status bar gets grey as expected.