Adding the new iOS 11 large title



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


Found the solution:

import this:

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


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

iOS 11 Large title on action bar