Web / Nativescript interview questions
1. What is NativeScript?
NativeScript is a cross-platform JavaScript framework that lets you develop native iOS and Android apps from a single code base. The framework provides JavaScript access to the native APIs, user interface, and rendering engines of iOS and Android. By using JavaScript or TypeScript, you can create...
2. Does NativeScript use WebView?
No, NativeScript doesn't use WebView component. NativeScript maps the UI markup in your code to native components as per Apple and Android had intended and renders as native app.
3. Different Layout containers in Nativescript.
The AbsoluteLayout is the simplest layout in NativeScript. It uses absolute left-top coordinates to position its children. The DockLayout is a layout that provides a docking mechanism for child elements to the left, right, top, bottom, or center of the layout. To define the docking side of a chil...
4. What are the NativeScript Application events?
launch : This event is raised when application launch. suspend : This event is raised when the application is suspended. resume : This event is raised when the application is resumed after it has been suspended. displayed : This event is raised when the UIelements are rendered. orientationChanged...
5. Name a few AutoInjected objects in Nativescript Angular components.
"ui/page".Page: the native page the component renders on. The router implementation takes care to inject the correct instance when loading components on different pages. "platform".Device: contains information about the device the application is running on.