General StatusBar color for Android and IOS!
npm i --save react-native-general-statusbar
import GeneralStatusBarColor from "react-native-general-statusbar";
function MyComponent() {
return (
<View>
<GeneralStatusBarColor
backgroundColor="#00AEEF"
barStyle="light-content"
/>
</View>
);
}
The background color of the status bar.
Type | Required |
---|---|
color | No |
Sets the color of the status bar text.
Type | Required |
---|---|
enum('default', 'light-content', 'dark-content') | No |
MIT