SlideShare a Scribd company logo
Everything about NativeScript
Agenda
• Overview of Native Script
• Pre-Requisites for Native Script
• Native Script App Folders
• Basic Commands of Native Script
• Native Script Controls
• Demo LiveSync and HMR
• Demo using Native Script –Play Ground
• Demo using Visual Studio Code
My Intro
• Baskar Rao
• Senior .Net Consultant with Compunnel Software Group.
• @baskarmib
• https://www.linkedin.com/in/baskarrao-dandlamudi
• baskarrao.dandlamudi@outlook.com
• www.compunnel.com
• https://github.com/baskar3078/NativeScriptSamples
Native Script - Overview
• Native Script is free open source framework
for building native IOS and Android Apps.
• Build Cross Platform mobile apps using single
code base.
• Develop Mobile Apps using JavaScript ,
Angular , Typescript and Vue
Why Native Script
• Web Developers with knowledge of HTML,
CSS and JavaScript can use the same to
develop rich native mobile applications.
• Easily develop apps using existing plugins
from npm [Node], Gradle [Android] and IOS
Plugins.
• Easy to learn and develop apps using pre-
defined templates.
Pre-Requisites of Native Script
• Prior Knowledge of HTML, CSS and any one
of scripting language JavaScript , Angular,
Typescript or Vue
• Node.js Server, Command Line Terminal and
Preferred Text IDE Editor
• Android Studio, Android SDK and Android
Emulator, Java SDK
Native Script – App Structure
Native Script App Structure
• Any Native Script app contains the below
folders
• Root – Project Name
• App Folder
• Node_Modules
• Package.Json
• Platforms
App Structure
• App Folder
This folder contains all the development resources like forms, js files
• Node_Modules
This folder contains application npm module dependencies. The tns-core modules folder contains Native
Script related javascript modules which can be used to develop features in the application like http calls,
access files etc.
• Package.Json
Details of application and the version of native script used and other npm modules used in the application.
• Platforms
This folder contains platform-specific code which Native Script needs to build IOS or Android Apps.
This is mostly generated code by Native Script CLI.
App Structure - Contd
• App_Resources
This folder contains platform specific resources.
• Shared
This folder contains files that needs to be shared across views
In app.
• Views
This folder contains the code to build apps views. Each view is made
Up of XML File, a Javascript file and optional css file.
• App.css
File contains global styles used in the app.
• App.Js
This file sets up applications starting module and initializes the app.
Native Script CLI Basic Commands
• tns create appname --template template name
• This creates an app based on the provided template name.
• Hello world template is used when no template flag is provided
• tns platform add android
• This creates the android specific platform folder.
• tns platform add ios
• This creates the IOS specific platform folder.
Native Script CLI Basic Commands
• tns build android
• This command converts code from app folder to android platform.
• tns build ios
• This command converts code from app folder to ios platform
• tns run android --emulator
• This command builds and runs the app in android emulator
• tns run ios
• This command builds and runs the app in IOS device or emulator
IOS specific commands cannot be executed in Windows OS.
Native Script CLI Basic Commands
• tns plugin add “pluginname or path to pluginname”
• This command is used to add nativescript plugin to application.
• tns prepare android
• This command is used to update android platform folder with changes from app folder.
• tns prepare ios
• This command is used to update IOS platform folder with changes from app folder
• tns doctor
• This command is used to verify if all required components are setup in development machine.
Native Script CLI Basic Commands
• tns test init
• This command is used to initialize testing folder.
• tns test platform
• This command is used to run tests against the selected platform.
• tns debug platform
• This command is used to debug Nativescript apps using chrome dev
tools
Native Script Controls
What makes a Native Script View
• Native Script View is comprised of three files.
-- ViewName.xml
-- ViewName.css
-- ViewName.js
• Xml file is used to design the screen layout and screen controls.
• Css file is used to mention css class specific to the view.
• Js file acts as the code behind file similar to aspx.cs for an aspx page.
Native Script View Models
• Native Script View Models are used to enable two way data flow between model and view
• Native Script uses the observable module to facilitate the binding between view and model
var observableModule = require("data/observable");
• The properties defined in view model can be accessed in view using the “{{ propertyname }}” syntax
<TextField id="email" text="{{ email }}" keyboardType="email" autocorrect="false" autocapitalizationType="none" />
Native Script Basic Controls
HTML Control Native Script Control
<div> LayOut – Stack Layout, Grid LayOut, Wrap
LayOut, FlexBox Layout, Dock Layout
<input type="button" value=“Sign In"
onclick=“signIn()">
<Button text=“Sign In" tap="signIn"/>
<label>Click me </label> <Label text="{{ name }}" />
<img src="mdn-logo-sm.png" alt="MDN"> <Image src="res://logo" ></Image>
<input id="email" type="email"> <TextField id="email" text="{{ email }}"
keyboardType="email" autocorrect="false“
autocapitalizationType="none" />
Native Script Basic Controls
Image
<!-- Load image from app/App_Resources/<platform> folders-->
<Image src="res://logo_white_bg" stretch="none" class="img-rounded p-l-15 p-r-15 p-t-
15"></Image>
<!-- Load image from app/images folder -->
<Image src="~/images/logo.png" stretch="none" class="img-rounded p-l-15 p-r-15 p-t-
15"></Image>
<!-- Load image from url -->
<Image src="https://docs.nativescript.org/img/NativeScript_logo.png" stretch="none"
class="img-rounded p-l-15 p-r-15 p-t-15"></Image>
Native Script Basic Controls
Stack Layout
<StackLayout class="layoutBackgroundImageFromFolder">
<Button text="About" tap="loadAbout" />
<Button text="Schedule" tap="loadSchedule"/>
</StackLayout>
Stack Layout can be used to stack the controls vertical or horizontal similar to <div>.
You guys are Awesome!!!
https://speakerdeck.com/reverentgeek
Native Script Vue Basics
• Installation Requirements
• Node Js.
• Vue CLI
• NativeScript Vue CLI
• Vue Dev Tools
• Vuex for State Management
• No Support for Vue Router
• No Support for Vue Testing – Can use Appium to test.
Native Script Vue Basics
• Single Page Components
• Native Script supports Single Page Components of Vue.
• Component Structure
• template.
• script section
• style section
Native Script Vue Basics
Native Script Vue Basics
Native Script Vue Basics
Native Script Vue Basics
Dev Tools
• Visual Studio Code
Install NativeScript PlugIn
Create a native script app using tns create app command.
Navigate to the app folder.
Enter code . Command .
• Chrome Developer Tools
Chrome Developer Tools can also be used to
debug NativeScript Applications.
Dev Tools
• Native Script Play Ground
Native Script Play Ground is a browser based platform to develop and preview mobile applications
Dev Tools
• Native Script Side Kick
Can be used to develop applications with pre-defined starter templates
Perform cloud or local builds and deploy to test devices
Helps to develop IOS Applications on Windows O/S
Walkthrough
• Demo of an existing app using Play Ground
• Demo live sync feature
• Demo HMR using Visual Studio Code
NativeScript UpLabs Challenge
Native Script Contributions
Interested in Exploring Vue
• Check out the session by Lee Brandt at 2 PM in Main Auditorium.
• https://twitter.com/leebrandt
•A Developers Guide to Docker
Interested to Explore Docker
Further Resources
• Native Script - Documentation
• Native Script eBook is free book by @brosteins available for download
• Native Script Blog
• Native Script Code Snippets
• Native Script Playground - Browser based development tool
• Native Script Sidekick – Useful for developing IOS apps on Windows Machine
• Native Script Vue Documentation
Questions
https://www.linkedin.com/in/baskarrao-dandlamudi
baskarrao.dandlamudi@outlook.com
https://baskarrao.wordpress.com/
Thanks to Columbus Code Camp Team for opportunity. Please share your feedback at
https://docs.google.com/forms/d/11fwzfz7nqFnBm1LFZpYlZmMq0dO6HXDl3yzhU0egIDU
Ad

More Related Content

What's hot (20)

Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Ryan Cuprak
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Cordova: APIs and instruments
Cordova: APIs and instrumentsCordova: APIs and instruments
Cordova: APIs and instruments
Ivano Malavolta
 
React Native
React NativeReact Native
React Native
Heber Silva
 
React Native - Why Designers should use React native. And everyone else too.
React Native - Why Designers should use React native. And everyone else too.React Native - Why Designers should use React native. And everyone else too.
React Native - Why Designers should use React native. And everyone else too.
Val Scholz
 
Development of automated tests for ext js based web sites
Development of automated tests for ext js based web sitesDevelopment of automated tests for ext js based web sites
Development of automated tests for ext js based web sites
ISsoft
 
Don Wibier
Don WibierDon Wibier
Don Wibier
CodeFest
 
Spec et test agile sur mobile @airfrance #at lille & cocoaheads tls
Spec et test agile sur mobile @airfrance #at lille & cocoaheads tlsSpec et test agile sur mobile @airfrance #at lille & cocoaheads tls
Spec et test agile sur mobile @airfrance #at lille & cocoaheads tls
ekito
 
Introduction to Apache Cordova (Phonegap)
Introduction to Apache Cordova (Phonegap)Introduction to Apache Cordova (Phonegap)
Introduction to Apache Cordova (Phonegap)
ejlp12
 
Testing Code.org's Interactive CS Curriculum
Testing Code.org's Interactive CS CurriculumTesting Code.org's Interactive CS Curriculum
Testing Code.org's Interactive CS Curriculum
Brian Jordan
 
Cross-Platform Development
Cross-Platform DevelopmentCross-Platform Development
Cross-Platform Development
Syed Owais Ali Chishti
 
Building a mobile application for dot netnuke
Building a mobile application for dot netnukeBuilding a mobile application for dot netnuke
Building a mobile application for dot netnuke
brchapman
 
Deploying ASP.Net Core apps in Docker Containers
Deploying ASP.Net Core apps in Docker ContainersDeploying ASP.Net Core apps in Docker Containers
Deploying ASP.Net Core apps in Docker Containers
Amal Dev
 
ASP.NET Core 1.0 Overview
ASP.NET Core 1.0 OverviewASP.NET Core 1.0 Overview
ASP.NET Core 1.0 Overview
Shahed Chowdhuri
 
Getting started with titanium
Getting started with titaniumGetting started with titanium
Getting started with titanium
Naga Harish M
 
A walkthrough of JavaScript ES6 features
A walkthrough of JavaScript ES6 featuresA walkthrough of JavaScript ES6 features
A walkthrough of JavaScript ES6 features
Michal Juhas
 
Introduction to React Native & Redux
Introduction to React Native & ReduxIntroduction to React Native & Redux
Introduction to React Native & Redux
Barak Cohen
 
Mobile App Development Using Appcelerator and DNN WebAPIs
Mobile App Development Using Appcelerator and DNN WebAPIsMobile App Development Using Appcelerator and DNN WebAPIs
Mobile App Development Using Appcelerator and DNN WebAPIs
DNN
 
Docker for .net developer
Docker for .net developerDocker for .net developer
Docker for .net developer
Tung Nguyen Thanh
 
Xamarin forms introduction by Taswar Bhatti and Ahmed Assad
Xamarin forms introduction by Taswar Bhatti and Ahmed AssadXamarin forms introduction by Taswar Bhatti and Ahmed Assad
Xamarin forms introduction by Taswar Bhatti and Ahmed Assad
Taswar Bhatti
 
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Hybrid Mobile Development with Apache Cordova and Java EE 7 (JavaOne 2014)
Ryan Cuprak
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
Serge van den Oever
 
Cordova: APIs and instruments
Cordova: APIs and instrumentsCordova: APIs and instruments
Cordova: APIs and instruments
Ivano Malavolta
 
React Native - Why Designers should use React native. And everyone else too.
React Native - Why Designers should use React native. And everyone else too.React Native - Why Designers should use React native. And everyone else too.
React Native - Why Designers should use React native. And everyone else too.
Val Scholz
 
Development of automated tests for ext js based web sites
Development of automated tests for ext js based web sitesDevelopment of automated tests for ext js based web sites
Development of automated tests for ext js based web sites
ISsoft
 
Don Wibier
Don WibierDon Wibier
Don Wibier
CodeFest
 
Spec et test agile sur mobile @airfrance #at lille & cocoaheads tls
Spec et test agile sur mobile @airfrance #at lille & cocoaheads tlsSpec et test agile sur mobile @airfrance #at lille & cocoaheads tls
Spec et test agile sur mobile @airfrance #at lille & cocoaheads tls
ekito
 
Introduction to Apache Cordova (Phonegap)
Introduction to Apache Cordova (Phonegap)Introduction to Apache Cordova (Phonegap)
Introduction to Apache Cordova (Phonegap)
ejlp12
 
Testing Code.org's Interactive CS Curriculum
Testing Code.org's Interactive CS CurriculumTesting Code.org's Interactive CS Curriculum
Testing Code.org's Interactive CS Curriculum
Brian Jordan
 
Building a mobile application for dot netnuke
Building a mobile application for dot netnukeBuilding a mobile application for dot netnuke
Building a mobile application for dot netnuke
brchapman
 
Deploying ASP.Net Core apps in Docker Containers
Deploying ASP.Net Core apps in Docker ContainersDeploying ASP.Net Core apps in Docker Containers
Deploying ASP.Net Core apps in Docker Containers
Amal Dev
 
Getting started with titanium
Getting started with titaniumGetting started with titanium
Getting started with titanium
Naga Harish M
 
A walkthrough of JavaScript ES6 features
A walkthrough of JavaScript ES6 featuresA walkthrough of JavaScript ES6 features
A walkthrough of JavaScript ES6 features
Michal Juhas
 
Introduction to React Native & Redux
Introduction to React Native & ReduxIntroduction to React Native & Redux
Introduction to React Native & Redux
Barak Cohen
 
Mobile App Development Using Appcelerator and DNN WebAPIs
Mobile App Development Using Appcelerator and DNN WebAPIsMobile App Development Using Appcelerator and DNN WebAPIs
Mobile App Development Using Appcelerator and DNN WebAPIs
DNN
 
Xamarin forms introduction by Taswar Bhatti and Ahmed Assad
Xamarin forms introduction by Taswar Bhatti and Ahmed AssadXamarin forms introduction by Taswar Bhatti and Ahmed Assad
Xamarin forms introduction by Taswar Bhatti and Ahmed Assad
Taswar Bhatti
 

Similar to Native script overview (20)

Native script overview
Native script overviewNative script overview
Native script overview
Baskar rao Dsn
 
Building your first android app using Xamarin
Building your first android app using XamarinBuilding your first android app using Xamarin
Building your first android app using Xamarin
Gill Cleeren
 
Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)
Visug
 
Angular mobile angular_u
Angular mobile angular_uAngular mobile angular_u
Angular mobile angular_u
Doris Chen
 
NativeScript 環境のインストールとはじめてのプロジェクト実行
NativeScript 環境のインストールとはじめてのプロジェクト実行NativeScript 環境のインストールとはじめてのプロジェクト実行
NativeScript 環境のインストールとはじめてのプロジェクト実行
Osamu Monoe
 
Getting started with Appcelerator Titanium
Getting started with Appcelerator TitaniumGetting started with Appcelerator Titanium
Getting started with Appcelerator Titanium
Techday7
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
Vibrant Technologies & Computers
 
Xamarin.Forms Bootcamp
Xamarin.Forms BootcampXamarin.Forms Bootcamp
Xamarin.Forms Bootcamp
Mike Melusky
 
iOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for BeginnersiOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for Beginners
RyanISI
 
Develop business apps cross-platform development using visual studio with x...
Develop business apps   cross-platform development using visual studio with x...Develop business apps   cross-platform development using visual studio with x...
Develop business apps cross-platform development using visual studio with x...
Alexander Meijers
 
Reactive summit 2020 microsoft orleans the easy way
Reactive summit 2020   microsoft orleans the easy wayReactive summit 2020   microsoft orleans the easy way
Reactive summit 2020 microsoft orleans the easy way
John Azariah
 
Diagnosing issues in your ASP.NET applications in production with Visual Stud...
Diagnosing issues in your ASP.NET applications in production with Visual Stud...Diagnosing issues in your ASP.NET applications in production with Visual Stud...
Diagnosing issues in your ASP.NET applications in production with Visual Stud...
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
React nativebeginner1
React nativebeginner1React nativebeginner1
React nativebeginner1
Oswald Campesato
 
Nativescript
NativescriptNativescript
Nativescript
Software Infrastructure
 
Apache Cordova 4.x
Apache Cordova 4.xApache Cordova 4.x
Apache Cordova 4.x
Ivano Malavolta
 
Quick Interview Preparation Dot Net Core
Quick Interview Preparation Dot Net CoreQuick Interview Preparation Dot Net Core
Quick Interview Preparation Dot Net Core
Karmanjay Verma
 
Build your android app with gradle
Build your android app with gradleBuild your android app with gradle
Build your android app with gradle
Swain Loda
 
Introduction phonegap
Introduction phonegapIntroduction phonegap
Introduction phonegap
Rakesh Jha
 
Advanced programing in phonegap
Advanced programing in phonegapAdvanced programing in phonegap
Advanced programing in phonegap
Rakesh Jha
 
Web dev tools review
Web dev tools reviewWeb dev tools review
Web dev tools review
Changhyun Lee
 
Native script overview
Native script overviewNative script overview
Native script overview
Baskar rao Dsn
 
Building your first android app using Xamarin
Building your first android app using XamarinBuilding your first android app using Xamarin
Building your first android app using Xamarin
Gill Cleeren
 
Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)Building your first android app using xamarin (Gill Cleeren)
Building your first android app using xamarin (Gill Cleeren)
Visug
 
Angular mobile angular_u
Angular mobile angular_uAngular mobile angular_u
Angular mobile angular_u
Doris Chen
 
NativeScript 環境のインストールとはじめてのプロジェクト実行
NativeScript 環境のインストールとはじめてのプロジェクト実行NativeScript 環境のインストールとはじめてのプロジェクト実行
NativeScript 環境のインストールとはじめてのプロジェクト実行
Osamu Monoe
 
Getting started with Appcelerator Titanium
Getting started with Appcelerator TitaniumGetting started with Appcelerator Titanium
Getting started with Appcelerator Titanium
Techday7
 
Xamarin.Forms Bootcamp
Xamarin.Forms BootcampXamarin.Forms Bootcamp
Xamarin.Forms Bootcamp
Mike Melusky
 
iOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for BeginnersiOS Application Penetration Testing for Beginners
iOS Application Penetration Testing for Beginners
RyanISI
 
Develop business apps cross-platform development using visual studio with x...
Develop business apps   cross-platform development using visual studio with x...Develop business apps   cross-platform development using visual studio with x...
Develop business apps cross-platform development using visual studio with x...
Alexander Meijers
 
Reactive summit 2020 microsoft orleans the easy way
Reactive summit 2020   microsoft orleans the easy wayReactive summit 2020   microsoft orleans the easy way
Reactive summit 2020 microsoft orleans the easy way
John Azariah
 
Quick Interview Preparation Dot Net Core
Quick Interview Preparation Dot Net CoreQuick Interview Preparation Dot Net Core
Quick Interview Preparation Dot Net Core
Karmanjay Verma
 
Build your android app with gradle
Build your android app with gradleBuild your android app with gradle
Build your android app with gradle
Swain Loda
 
Introduction phonegap
Introduction phonegapIntroduction phonegap
Introduction phonegap
Rakesh Jha
 
Advanced programing in phonegap
Advanced programing in phonegapAdvanced programing in phonegap
Advanced programing in phonegap
Rakesh Jha
 
Web dev tools review
Web dev tools reviewWeb dev tools review
Web dev tools review
Changhyun Lee
 
Ad

More from Baskar rao Dsn (8)

Play with azure functions
Play with azure functionsPlay with azure functions
Play with azure functions
Baskar rao Dsn
 
Azure Functions in Action #CodePaLOUsa
Azure Functions in Action #CodePaLOUsaAzure Functions in Action #CodePaLOUsa
Azure Functions in Action #CodePaLOUsa
Baskar rao Dsn
 
Azure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCCAzure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCC
Baskar rao Dsn
 
Era of server less computing
Era of server less computingEra of server less computing
Era of server less computing
Baskar rao Dsn
 
Era of server less computing final
Era of server less computing finalEra of server less computing final
Era of server less computing final
Baskar rao Dsn
 
Steps to publish an application to azure service fabric
Steps to publish an application to azure service fabricSteps to publish an application to azure service fabric
Steps to publish an application to azure service fabric
Baskar rao Dsn
 
Azure service fabric overview
Azure service fabric overviewAzure service fabric overview
Azure service fabric overview
Baskar rao Dsn
 
Certificate
CertificateCertificate
Certificate
Baskar rao Dsn
 
Play with azure functions
Play with azure functionsPlay with azure functions
Play with azure functions
Baskar rao Dsn
 
Azure Functions in Action #CodePaLOUsa
Azure Functions in Action #CodePaLOUsaAzure Functions in Action #CodePaLOUsa
Azure Functions in Action #CodePaLOUsa
Baskar rao Dsn
 
Azure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCCAzure Functions in Action #OrlandoCC
Azure Functions in Action #OrlandoCC
Baskar rao Dsn
 
Era of server less computing
Era of server less computingEra of server less computing
Era of server less computing
Baskar rao Dsn
 
Era of server less computing final
Era of server less computing finalEra of server less computing final
Era of server less computing final
Baskar rao Dsn
 
Steps to publish an application to azure service fabric
Steps to publish an application to azure service fabricSteps to publish an application to azure service fabric
Steps to publish an application to azure service fabric
Baskar rao Dsn
 
Azure service fabric overview
Azure service fabric overviewAzure service fabric overview
Azure service fabric overview
Baskar rao Dsn
 
Ad

Recently uploaded (20)

Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 

Native script overview

  • 2. Agenda • Overview of Native Script • Pre-Requisites for Native Script • Native Script App Folders • Basic Commands of Native Script • Native Script Controls • Demo LiveSync and HMR • Demo using Native Script –Play Ground • Demo using Visual Studio Code
  • 3. My Intro • Baskar Rao • Senior .Net Consultant with Compunnel Software Group. • @baskarmib • https://www.linkedin.com/in/baskarrao-dandlamudi • [email protected] • www.compunnel.com • https://github.com/baskar3078/NativeScriptSamples
  • 4. Native Script - Overview • Native Script is free open source framework for building native IOS and Android Apps. • Build Cross Platform mobile apps using single code base. • Develop Mobile Apps using JavaScript , Angular , Typescript and Vue
  • 5. Why Native Script • Web Developers with knowledge of HTML, CSS and JavaScript can use the same to develop rich native mobile applications. • Easily develop apps using existing plugins from npm [Node], Gradle [Android] and IOS Plugins. • Easy to learn and develop apps using pre- defined templates.
  • 6. Pre-Requisites of Native Script • Prior Knowledge of HTML, CSS and any one of scripting language JavaScript , Angular, Typescript or Vue • Node.js Server, Command Line Terminal and Preferred Text IDE Editor • Android Studio, Android SDK and Android Emulator, Java SDK
  • 7. Native Script – App Structure
  • 8. Native Script App Structure • Any Native Script app contains the below folders • Root – Project Name • App Folder • Node_Modules • Package.Json • Platforms
  • 9. App Structure • App Folder This folder contains all the development resources like forms, js files • Node_Modules This folder contains application npm module dependencies. The tns-core modules folder contains Native Script related javascript modules which can be used to develop features in the application like http calls, access files etc. • Package.Json Details of application and the version of native script used and other npm modules used in the application. • Platforms This folder contains platform-specific code which Native Script needs to build IOS or Android Apps. This is mostly generated code by Native Script CLI.
  • 10. App Structure - Contd • App_Resources This folder contains platform specific resources. • Shared This folder contains files that needs to be shared across views In app. • Views This folder contains the code to build apps views. Each view is made Up of XML File, a Javascript file and optional css file. • App.css File contains global styles used in the app. • App.Js This file sets up applications starting module and initializes the app.
  • 11. Native Script CLI Basic Commands • tns create appname --template template name • This creates an app based on the provided template name. • Hello world template is used when no template flag is provided • tns platform add android • This creates the android specific platform folder. • tns platform add ios • This creates the IOS specific platform folder.
  • 12. Native Script CLI Basic Commands • tns build android • This command converts code from app folder to android platform. • tns build ios • This command converts code from app folder to ios platform • tns run android --emulator • This command builds and runs the app in android emulator • tns run ios • This command builds and runs the app in IOS device or emulator IOS specific commands cannot be executed in Windows OS.
  • 13. Native Script CLI Basic Commands • tns plugin add “pluginname or path to pluginname” • This command is used to add nativescript plugin to application. • tns prepare android • This command is used to update android platform folder with changes from app folder. • tns prepare ios • This command is used to update IOS platform folder with changes from app folder • tns doctor • This command is used to verify if all required components are setup in development machine.
  • 14. Native Script CLI Basic Commands • tns test init • This command is used to initialize testing folder. • tns test platform • This command is used to run tests against the selected platform. • tns debug platform • This command is used to debug Nativescript apps using chrome dev tools
  • 16. What makes a Native Script View • Native Script View is comprised of three files. -- ViewName.xml -- ViewName.css -- ViewName.js • Xml file is used to design the screen layout and screen controls. • Css file is used to mention css class specific to the view. • Js file acts as the code behind file similar to aspx.cs for an aspx page.
  • 17. Native Script View Models • Native Script View Models are used to enable two way data flow between model and view • Native Script uses the observable module to facilitate the binding between view and model var observableModule = require("data/observable"); • The properties defined in view model can be accessed in view using the “{{ propertyname }}” syntax <TextField id="email" text="{{ email }}" keyboardType="email" autocorrect="false" autocapitalizationType="none" />
  • 18. Native Script Basic Controls HTML Control Native Script Control <div> LayOut – Stack Layout, Grid LayOut, Wrap LayOut, FlexBox Layout, Dock Layout <input type="button" value=“Sign In" onclick=“signIn()"> <Button text=“Sign In" tap="signIn"/> <label>Click me </label> <Label text="{{ name }}" /> <img src="mdn-logo-sm.png" alt="MDN"> <Image src="res://logo" ></Image> <input id="email" type="email"> <TextField id="email" text="{{ email }}" keyboardType="email" autocorrect="false“ autocapitalizationType="none" />
  • 19. Native Script Basic Controls Image <!-- Load image from app/App_Resources/<platform> folders--> <Image src="res://logo_white_bg" stretch="none" class="img-rounded p-l-15 p-r-15 p-t- 15"></Image> <!-- Load image from app/images folder --> <Image src="~/images/logo.png" stretch="none" class="img-rounded p-l-15 p-r-15 p-t- 15"></Image> <!-- Load image from url --> <Image src="https://docs.nativescript.org/img/NativeScript_logo.png" stretch="none" class="img-rounded p-l-15 p-r-15 p-t-15"></Image>
  • 20. Native Script Basic Controls Stack Layout <StackLayout class="layoutBackgroundImageFromFolder"> <Button text="About" tap="loadAbout" /> <Button text="Schedule" tap="loadSchedule"/> </StackLayout> Stack Layout can be used to stack the controls vertical or horizontal similar to <div>.
  • 21. You guys are Awesome!!! https://speakerdeck.com/reverentgeek
  • 22. Native Script Vue Basics • Installation Requirements • Node Js. • Vue CLI • NativeScript Vue CLI • Vue Dev Tools • Vuex for State Management • No Support for Vue Router • No Support for Vue Testing – Can use Appium to test.
  • 23. Native Script Vue Basics • Single Page Components • Native Script supports Single Page Components of Vue. • Component Structure • template. • script section • style section
  • 28. Dev Tools • Visual Studio Code Install NativeScript PlugIn Create a native script app using tns create app command. Navigate to the app folder. Enter code . Command . • Chrome Developer Tools Chrome Developer Tools can also be used to debug NativeScript Applications.
  • 29. Dev Tools • Native Script Play Ground Native Script Play Ground is a browser based platform to develop and preview mobile applications
  • 30. Dev Tools • Native Script Side Kick Can be used to develop applications with pre-defined starter templates Perform cloud or local builds and deploy to test devices Helps to develop IOS Applications on Windows O/S
  • 31. Walkthrough • Demo of an existing app using Play Ground • Demo live sync feature • Demo HMR using Visual Studio Code
  • 35. • Check out the session by Lee Brandt at 2 PM in Main Auditorium. • https://twitter.com/leebrandt •A Developers Guide to Docker Interested to Explore Docker
  • 36. Further Resources • Native Script - Documentation • Native Script eBook is free book by @brosteins available for download • Native Script Blog • Native Script Code Snippets • Native Script Playground - Browser based development tool • Native Script Sidekick – Useful for developing IOS apps on Windows Machine • Native Script Vue Documentation
  • 37. Questions https://www.linkedin.com/in/baskarrao-dandlamudi [email protected] https://baskarrao.wordpress.com/ Thanks to Columbus Code Camp Team for opportunity. Please share your feedback at https://docs.google.com/forms/d/11fwzfz7nqFnBm1LFZpYlZmMq0dO6HXDl3yzhU0egIDU