Appcelerator deprecate functions 'hideStatusBar', 'showStatusBar' and 'setStatusBarStyle' on runtime. This module gives you back the control over these functions on iOS 7/8.
You can download the zip package or clone this git and compile
To access this module from JavaScript, you would do the following:
var statusbar = require("com.apaladini.statusbar");
The statusbar variable is a reference to the Module object.
<ios>
<plist>
<dict>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
</ios>
Hide the status bar.
statusbar.hide();
or
statusbar.hide({animationStyle: statusbar.FADE});
input (constant) | Description |
---|---|
NONE | No animation |
FADE | Fading out |
SLIDE (Default) | The statusbar will slide to top |
Show the status bar.
statusbar.show();
or
statusbar.show({animationStyle: statusbar.FADE});
input (constant) | Description |
---|---|
NONE | No animation |
FADE | Fading in |
SLIDE (Default) | The statusbar will slide from top |
Set the color of status bar.
statusbar.style = statusbar.WHITE;
input (constant) | Description |
---|---|
BLACK | The statusbar icons and text will be black |
WHITE | The statusbar icons and text will be white |
Adriano Paladini