Is still possible to change statusbar color on certain page by using angular2/nativescript?
I tried to use this way from docs but it doesn't work.
import { topmost } from "tns-core-modules/ui/frame";
if (topmost().ios) {
var navigationBar = topmost().ios.controller.navigationBar;
// 0: default
// 1: light
navigationBar.barStyle = 1;
}
Playground example is here: https://play.nativescript.org/?template=play-ng&id=z8CnAz
PS: I need to have black status bar on first page and white on second one. Is it possible?