react-native-statusbar-manager
Installation
$ npm install react-native-statusbar-manager --save$ react-native link react-native-statusbar-manager
Usage
Attention
- The statusBar in this moudule is not the system statusBar.
- The theme of activity could not be set to
fitsSystemWindow = true
, must be set tofitsSystemWindow=false
Example
Set avtivity to full screen with transparent background statusbar and dark(or not) word(icon) in statusbar。
RNStatusbarManagerModule.;//or false
Set statusBar to color white backgroud:
RNStatusbarManagerModule.;
Set statusBar to color with alpha:
RNStatusbarManagerModule.;
Set activity looks like fitsSystemWindow = false or not:
RNStatusbarManagerModule.;//or true