Adding the new iOS 11 large title

ios

#1

How do I use the new iOS 11 large title in the navigation bar with Nativescript?

in Swift it would be something like this:

self.navigationController?.navigationBar.prefersLargeTitles = true

#2

Found the solution:

import this:

import * as frameModule from "tns-core-modules/ui/frame";

then

if (this.page.ios) {
    var navigationBar = frameModule.topmost().ios.controller.navigationBar;
    navigationBar.prefersLargeTitles = true;
}

iOS 11 Large title on action bar