You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ReactNativeScript.render() needs a root node (AKA container) to render into. Thus, I need to get a reference to the application's root view at startup time (which I'll use as the React root). However, I'm facing difficulties:
/* app.ts */import{on,run,launchEvent,getRootView}from"tns-core-modules/application";console.log(getRootView());// application root view is undefinedon(launchEvent,(data)=>{console.log(data.root);// application launch event's data.root is undefined});run();
Clearly I am misunderstanding the application lifecycle here. Wondering how I get a reference to the root view (frame) of the app at startup.
Uh oh!
There was an error while loading. Please reload this page.
ReactNativeScript.render()
needs a root node (AKA container) to render into. Thus, I need to get a reference to the application's root view at startup time (which I'll use as the React root). However, I'm facing difficulties:Clearly I am misunderstanding the application lifecycle here. Wondering how I get a reference to the root view (frame) of the app at startup.
References:
The text was updated successfully, but these errors were encountered: