Getting Started with NativeScript

Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!
Preview in Mapt

Getting Started with NativeScript

Nathanael J. Anderson

1 customer reviews
Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$16.80
RRP $23.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$16.80
$29.99
$29.99 p/m after trial
RRP $23.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Getting Started with NativeScript Book Cover
Getting Started with NativeScript
$ 23.99
$ 16.80
NativeScript for Angular Mobile Development Book Cover
NativeScript for Angular Mobile Development
$ 35.99
$ 25.20
Buy 2 for $34.30
Save $25.68
Add to Cart

Book Details

ISBN 139781785888656
Paperback168 pages

Book Description

NativeScript allows you to build a fast cross-platform application that has a native UI. NativeScript is a true cross-platform framework that generates native speed applications using the native components of the host platform, all using JavaScript. Although NativeScript allows you to build your application in JavaScript, you have full access to the host OS from your code, allowing you to easily tweak or use new platform features instantly at native code speeds.

Whether you have already developed multiple applications or zero applications, this book will help you to develop your next application in a cross-platform framework quickly, saving you a massive amount of time and money.

This book concisely shows you NativeScript’s built-in framework that allows you to rapidly develop a fully-working compiled cross-platform application in just a few chapters. It starts by laying the foundation of NativeScript and working through the fundamentals to create a basic shell of the application. Moving on, you’ll see how to build a full-fledged application step by step. We’ll show you how to use plugins, and how to communicate with the native OS libraries easily so that you can customize your application as if your app was created in Java or Objective C. We then deal with the issues that arise from being cross platform and compensate for the different screen sizes, screen resolutions, and device abilities. Finally, we progress to testing and deploying your app.

Table of Contents

Chapter 1: Introduction to NativeScript
NativeScript
NativeScript and TypeScript
Installing NativeScript
The NativeScript command line
Creating your first application
Summary
Chapter 2: The Project Structure
Project directory overview
The app folder
Foundational components
Creating a second page
Summary
Chapter 3: Declarative UI, Styling, and Events
Declarative UI
Using the Declarative UI for our settings page
Binding and event system
Event system
Binding
Styling the UI
Trying CSS out and styling our application
Summary
Chapter 4: Building a Featured Application
Layouts
Building our featured application
Building the main screen
Fonts
Icons
Communication with the server
Trying out our application
Summary
Chapter 5: Installing Third-Party Components
Places to find third-party components
How to install a third-party plugin component
Using third-party components
Summary
Chapter 6: Platform Differences
Android and iOS differences
Code differences
Platform classes
Declarative UI
Platform- and device-specific files
Screen size differences
Device differences
Summary
Chapter 7: Testing and Deploying Your App
Testing your application
Test frameworks
Local testing of your code
Unit testing on the device
Testing your app on a device or emulator
Understanding the call stack
Debugging your application
Publishing your application
Summary

What You Will Learn

  • Install and compile your application in NativeScript
  • Get important know-how on the NativeScript project structure
  • Develop and style your screens for multiple platforms
  • Create a full-featured cross-platform communication application
  • Import and use several third-party components
  • Simplify and deal with device resolution and cross-platform issues
  • Test and deploy your application

Authors

Table of Contents

Chapter 1: Introduction to NativeScript
NativeScript
NativeScript and TypeScript
Installing NativeScript
The NativeScript command line
Creating your first application
Summary
Chapter 2: The Project Structure
Project directory overview
The app folder
Foundational components
Creating a second page
Summary
Chapter 3: Declarative UI, Styling, and Events
Declarative UI
Using the Declarative UI for our settings page
Binding and event system
Event system
Binding
Styling the UI
Trying CSS out and styling our application
Summary
Chapter 4: Building a Featured Application
Layouts
Building our featured application
Building the main screen
Fonts
Icons
Communication with the server
Trying out our application
Summary
Chapter 5: Installing Third-Party Components
Places to find third-party components
How to install a third-party plugin component
Using third-party components
Summary
Chapter 6: Platform Differences
Android and iOS differences
Code differences
Platform classes
Declarative UI
Platform- and device-specific files
Screen size differences
Device differences
Summary
Chapter 7: Testing and Deploying Your App
Testing your application
Test frameworks
Local testing of your code
Unit testing on the device
Testing your app on a device or emulator
Understanding the call stack
Debugging your application
Publishing your application
Summary

Book Details

ISBN 139781785888656
Paperback168 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

NativeScript for Angular Mobile Development Book Cover
NativeScript for Angular Mobile Development
$ 35.99
$ 25.20
Ionic 2 Cookbook - Second Edition Book Cover
Ionic 2 Cookbook - Second Edition
$ 35.99
$ 25.20
Learning Vue.js 2 Book Cover
Learning Vue.js 2
$ 35.99
$ 25.20
TypeScript: Modern JavaScript Development Book Cover
TypeScript: Modern JavaScript Development
$ 69.99
$ 49.00
Developing with Docker Book Cover
Developing with Docker
$ 35.99
$ 25.20
React and React Native Book Cover
React and React Native
$ 39.99
$ 28.00