react-native-general-statusbar
Version:
General status bar color!
58 lines (39 loc) • 1.22 kB
Markdown
# react-native-general-statusbar
[](https://www.npmjs.com/package/react-native-general-statusbar)


[](https://github.com/prettier/prettier)
> General StatusBar color for Android and IOS!
## HOW TO INSTALL ?
```javascript
npm i --save react-native-general-statusbar
```
## HOW TO USE ?
```javascript
import GeneralStatusBarColor from "react-native-general-statusbar";
function MyComponent() {
return (
<View>
<GeneralStatusBarColor
backgroundColor="#00AEEF"
barStyle="light-content"
/>
</View>
);
}
```
## Reference
## Props
### `backgroundColor`
The background color of the status bar.
| Type | Required |
| ---- | -------- |
| color | No |
---
### `barStyle`
Sets the color of the status bar text.
| Type | Required |
| ---- | -------- |
| enum('default', 'light-content', 'dark-content') | No |
## LICENSE
MIT