NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in
ts
function setNativeApp(app: any): void;

Defined in: application/helpers-common.ts

This is called internally to set the native application instance. You typically do not need to call this directly. However, it's exposed for special case purposes, such as custom application initialization.

Parameters

ParameterTypeDescription
appanyThe native application instance to set. This should be called once during application startup to set the native app instance.

Returns

void