mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(utils): dismissKeyboard, copyToClipboard, setWindowBackgroundColor, getCurrentActivity and getResource (#10089)
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import { EventData, Page } from '@nativescript/core';
|
||||
import { EventData, Page, Utils } from '@nativescript/core';
|
||||
import { HelloWorldModel } from './main-view-model';
|
||||
|
||||
export function navigatingTo(args: EventData) {
|
||||
const page = <Page>args.object;
|
||||
page.bindingContext = new HelloWorldModel();
|
||||
|
||||
if (global.isIOS) {
|
||||
Utils.ios.setWindowBackgroundColor('blue');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user