NativeScript for Mobile App Development Cheat Sheet 2026
The 30 highest-yield NativeScript for Mobile App Development facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
- How do you access a raw native Android API class from NativeScript JavaScript? → Reference it by its fully qualified Java class name (e.g., android.content.Intent)
- What is the purpose of the `platforms` folder in a NativeScript project? → It contains auto-generated native platform projects for iOS and Android
- Which converter type transforms a raw value before displaying it in a NativeScript binding? → Converter (via the 'converter' binding option)
- In GridLayout, how do you define three equal columns? → columns='*, *, *'
- Which architectural approach is most suitable for large NativeScript applications that need predictable state changes? → Flux/Redux unidirectional data flow
- Which NativeScript API retrieves the device's current platform (iOS or Android)? → isAndroid / isIOS from @nativescript/core
- Which NativeScript module provides platform-specific binding context helpers? → @nativescript/core
- What is the NativeScript Playground? → A browser-based tool to write and preview NativeScript apps on a device
- What NativeScript component creates a side-drawer navigation pattern? → RadSideDrawer
- Which property controls the animation speed of a NativeScript navigation transition? → duration
- Which NativeScript layout arranges children in a single row or column? → StackLayout
- How is two-way data binding expressed in NativeScript XML? → {{ property }} with `text` and setting bindingContext
- What is the purpose of the `$` prefix in NativeScript data binding expressions? → References the current item in a list binding
- Which webpack plugin bundles NativeScript applications? → @nativescript/webpack
- What permission must be declared in AndroidManifest.xml to use internet access in NativeScript? → android.permission.INTERNET
- In NativeScript Vue, which method navigates to a new component? → $navigateTo(ComponentName)
- Which lifecycle event in a NativeScript page is the best place to initialize ViewModel state when the page first loads? → navigatedTo (or loaded for first-time init)
- Which runtime does NativeScript use to execute JavaScript on Android? → V8
- When should you prefer using NativeScript's ApplicationSettings over an in-memory Observable for storing user preferences? → When preferences must survive app restarts and device reboots
- Which NativeScript feature allows you to share business logic code between a web Angular app and a NativeScript Angular app? → Code sharing with NgModules and platform-specific file suffixes (.tns.ts)
- Which layout provides CSS Flexbox-style positioning in NativeScript? → FlexboxLayout
- What property controls the orientation of a StackLayout? → orientation
- Which NativeScript CLI flag enables verbose logging for build diagnostics? → --log verbose
- In a NativeScript app, what problem does the 'single source of truth' principle solve? → It prevents multiple conflicting copies of the same state across the app
- What is the purpose of the `tns-platform-declarations` npm package? → Provides TypeScript type definitions for native iOS and Android APIs
- Which profiling tool measures rendering performance of NativeScript iOS apps? → Xcode Instruments (Time Profiler)
- What does the `ns plugin add` command do? → Installs a NativeScript plugin and runs its post-install scripts
- Which property on an Image component improves ListView scroll performance? → loadMode='async'
- Where is the primary marketplace for NativeScript plugins? → market.nativescript.org
- Which command runs a NativeScript app on a connected Android device? → ns run android
Turn these facts into recall: