A simple NativeScript plugin for controlling status bar visibility.
Make sure you're using NativeScript 2.3.0 or higher. If not please run:
npm install -g nativescript
Run the following command from the root of your project:
tns plugin add nativescript-status-bar
This command automatically installs the necessary files, as well as stores nativescript-drop-down as a dependency in your project's package.json file.
// Get reference to the Status Bar plugin module
import statusBar = require("nativescript-status-bar");-
show()
Shows the status bar. -
hide()
Hides the status bar.