1.0.0 • Published 5 years ago

nativescript-playground-bar v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

nativescript-playground-bar

A plugin for your NativeScript Playground projects to help implement a light or dark content status bar.

Installation

  1. From the Playground UI select Add NPM package (via the Explorer popup menu).
  2. Enter nativescript-playground-bar as the NPM package name.
  3. Click Add.

Usage

// main-page.js
const PlaygroundBar = require("~/nativescript-playgroundbar");

exports.pageLoaded = function (args) {
  PlaygroundBar.lightContent(args.object);
}

Methods

lightContent

Sets the iOS status bar to light content.

ArgumentsRequiredDefaultDescription
pageyesn/aThe current page with the status bar you want to change.
timeoutno10Specifies the time (in milliseconds) you want to delay the change of style.

darkContent

Sets the iOS status bar to dark content, which is the playgrounds default style.

ArgumentsRequiredDefaultDescription
pageyesn/aThe current page with the status bar you want to change.
timeoutno10Specifies the time (in milliseconds) you want to delay the change of style.