SlideShare a Scribd company logo
html5-Web プラットフォーム部
ものえおさむ
今日は NativeScript の話です。
Introduce
of
What’s NativeScript
Native code compile
How NativeScript Works
Target device requirements
•Android API Level 17+
•iOS 9+
•The latest official version of NativeScript
Install : 2 type build environment.
NativeScript Core NativeScript with Angular
Install : NativeScript Core
• Node.js
• Java 8 SDK
• Android SDK
• Android Emulator
• Google Chrome
Instllation 1/3
Step 1: Install Node.js (LTS)
Step 2: Install the NativeScript CLI
npm install -g nativescript
tns
Verify the installation was successful by running tns command.
verify the installation was successful by running tns
Instllation 2/3 - Windows
Step 3: Install iOS and Android requirements
Window (use cmd.exe and admin privilege)
@powershell -NoProfile -ExecutionPolicy Bypass -
Command "iex ((new-object
net.webclient).DownloadString('https://www.nativescript.
org/setup/win'))"
Instllation 2/3 - macOS
Step 3: Install iOS and Android requirements
macOS (use sudo)
ruby -e "$(curl -fsSL
https://www.nativescript.org/setup/mac)"
Instllation 3/3
tns doctor
You can see the following message if you succeed.
“No issues were detected”
Step 4: Verify the setup
Unfortunately,
you will not success this install work.
Maybe, probably.
My recommendation
You should choose Advanced setup if you are
real man.
• You must always fight
using administrator
privileage.
• Do not use
Powershell never.
Create first app
with NativeScript Core
Create your first NativeScript App
tns create HelloWorld --template nativescript-template-tutorial
Step 1: Create app project.
Step 2: Execute the following the command.
cd HelloWorld
tns run android
Unfortunately,
you will not succeed run your first app
like a your first l♡ve.
Maybe, probably.
You will see the following message:
“Cannot find connected devices.”
Other disasters that attack you
Demo
Create and launch
My fist NativeScript App
Structure of basic app project
Global style for app.
Start module for app.
UI code for main-page.xml.
Markup (XML) for UI page.
Detailed dependency of app.
Node module,including nativescript modules.
Settings for each mobile platforms.
Visual resource for each mobile platforms.
Incompatible with Web development
Markup
<Page>
<StackLayout>
<Label id="Label1" text="This is Label!" />
<Button text="This is Button!" tap="buttonTap" />
</StackLayout>
</Page>
var view = require("ui/core/view");
function buttonTap(args) {
count++;
var parent = args.object.parent;
var lbl = view.getViewById(parent, "Label1");
lbl.text = "You tapped " + count + " times!";
}
exports.buttonTap = buttonTap;
Code
Helper tools
for
NativeScript
NativeScript Sidekick
Companion tool for NativeScript development.
• Create project
• JavaScript, TypeScript,Angular
• Some app type templates
• Build project (Local/Cloud)
• Manage Plugin
• Run on the device/emulator.
NativeScript PlayGrand
On the fly test environment for NativeScript
• Coding with an editor on the
Web browser.
• Show the preview to mobile
device with QR code.
• Need a dedicated mobile
application.
Visual Studio & Visual Studio Code plugins
• Create project
• JavaScript, TypeScript,Angular
• Some app type templates
• Build project (Local/Cloud)
• Manage Plugin
• Run on the device/emulator.
• Debug feature
• Coding helping feature
Summary
• NativeScript can develop cross platform mobile app
with Angular.js + TypeScript or JavaScript.
• The development method is not very compatible
with web development.
• Abundant tools and learning contents are prepared.
Finally
Reference
• Native mobile apps with Angular, TypeScript,
JavaScript – NativeScript
• Play and Try NativeScript on Your Device – {N}
Playground
• The total package for truly native mobile
development
NativeScript 環境のインストールとはじめてのプロジェクト実行

More Related Content

PDF
Beginner's Guide to Angular 2.0
PPTX
NativeScript Developer Day Keynote - Todd Anglin & Burke Holland
PDF
Cross-platform Desktop application with AngularJS and build with Node-webkit
PDF
node-webkit : Make a magic from your a desktop app to desktop app!
PPTX
Gdg ionic 2
PPTX
NativeScript + Push Notifications
PPTX
NativeScript - Open source framework for building truly native mobile apps wi...
PPTX
Lazy angular w/ webpack
Beginner's Guide to Angular 2.0
NativeScript Developer Day Keynote - Todd Anglin & Burke Holland
Cross-platform Desktop application with AngularJS and build with Node-webkit
node-webkit : Make a magic from your a desktop app to desktop app!
Gdg ionic 2
NativeScript + Push Notifications
NativeScript - Open source framework for building truly native mobile apps wi...
Lazy angular w/ webpack

What's hot (20)

PPTX
When You Cant Code You Can Blend
PDF
Webpack and angularjs
PDF
Flutter Workshop 2021 @ ARU
PDF
Jquery react angular
ODP
iOS Automation with Cucumber, Appium and Saucelabs
ODP
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
PPTX
Tales of Two Brothers
PDF
React Nativeアプリをリリースし続けるために、最初に行う8つの取り組み
PDF
Building Better AngularJS 1.X Apps With TypeScript
PPTX
PDF
Building the Front End with AngularJS
PDF
Moderne Android Builds mit Gradle
PDF
Introduction to flutter
PPTX
ng-conf NativeScript and Angular 2 Workshop
PDF
Node.js with Express
PPTX
JS digest. February 2017
PPTX
Angular 1.5 Components
PDF
InterCon 2016 - SLA vs Agilidade: uso de microserviços e monitoramento de cloud
PPT
A First Look at Windows Presentation Foundation Everywhere (WPF/E): a Cross …
PDF
Fitur Terbaru Flutter di Tahun 2021 - Widyarso Joko Purnomo
When You Cant Code You Can Blend
Webpack and angularjs
Flutter Workshop 2021 @ ARU
Jquery react angular
iOS Automation with Cucumber, Appium and Saucelabs
iOS Developers Conference-iOS Automation with Cucumber, Appium and Saucelabs
Tales of Two Brothers
React Nativeアプリをリリースし続けるために、最初に行う8つの取り組み
Building Better AngularJS 1.X Apps With TypeScript
Building the Front End with AngularJS
Moderne Android Builds mit Gradle
Introduction to flutter
ng-conf NativeScript and Angular 2 Workshop
Node.js with Express
JS digest. February 2017
Angular 1.5 Components
InterCon 2016 - SLA vs Agilidade: uso de microserviços e monitoramento de cloud
A First Look at Windows Presentation Foundation Everywhere (WPF/E): a Cross …
Fitur Terbaru Flutter di Tahun 2021 - Widyarso Joko Purnomo
Ad

Similar to NativeScript 環境のインストールとはじめてのプロジェクト実行 (20)

PDF
NativeScript: Cross-Platform Mobile Apps with JavaScript and Angular
PPTX
Ignite your app development with Angular, NativeScript and Firebase
PPTX
Native script overview
PPTX
Native Script Atlanta Code Camp
PPTX
Game On With NativeScript
PPTX
Native Script Overview
PPTX
Native script overview
PPTX
Dfc 2018 NativeScript
PPTX
Nativescript with angular 2
PDF
How native script angular helps to build truly native mobile applications
PPTX
Prototyping Mobile Apps with NativeScript and Angular
PPTX
Angular 2 and NativeScript
PPTX
PUG Challenge 2016 - The nativescript pug app challenge
PPTX
DOC-20230427-WA0010..pptx
PPTX
You Know Angular 2, You Know Native Mobile App Development
PPTX
Introduction to NativeScript - BuildTruly Native Apps using JavaScript
PPTX
Building Native Android Apps with JavaScript
PDF
NativeScript: mobile app. no webview.
PPTX
NativeScript and Angular
PDF
Connect.js 2015 - Building Native Mobile Applications with Javascript
NativeScript: Cross-Platform Mobile Apps with JavaScript and Angular
Ignite your app development with Angular, NativeScript and Firebase
Native script overview
Native Script Atlanta Code Camp
Game On With NativeScript
Native Script Overview
Native script overview
Dfc 2018 NativeScript
Nativescript with angular 2
How native script angular helps to build truly native mobile applications
Prototyping Mobile Apps with NativeScript and Angular
Angular 2 and NativeScript
PUG Challenge 2016 - The nativescript pug app challenge
DOC-20230427-WA0010..pptx
You Know Angular 2, You Know Native Mobile App Development
Introduction to NativeScript - BuildTruly Native Apps using JavaScript
Building Native Android Apps with JavaScript
NativeScript: mobile app. no webview.
NativeScript and Angular
Connect.js 2015 - Building Native Mobile Applications with Javascript
Ad

More from Osamu Monoe (20)

PDF
高品質な Teams アプリを開発するためのポイント
PDF
PWA on Windows
PDF
これでできる! Microsoft Teams アプリ開発のポイント徹底解説
PDF
Web プラットフォーム再考 ~PWA のもたらす未来の光と影~
PDF
Microsoft Edge のFIDO サポート状況
PDF
JavaScript と Bot Service を使った Bot 開発
PDF
Web サーバー管理者のための Azure App Service 再入門
PDF
Microsoft Bot Framework と Cognitive Services を活用した 業務サポートBOT 構築
PDF
JS で Bot つくろうぜ! ~刮目せよ!、これがMSのBot Framewok だ!!~
PDF
For every people achieve more : マイクロソフトの Inclusive Design について
PDF
Movable Type から BOT を作ろう! ~ Data API と Microsoft BOT Framework ~
PDF
Microsoft Edge 最新アップデートとこれから
PDF
Visual Studio 2015 を使用した Cordova アプリの開発
PDF
html5j Webプラットフォームの紹介
PDF
Microsoft edge deep dive
PDF
Edge と IE、来年からの Web 制作
PDF
マイクロソフトにおけるエバンジェリズム活動
PDF
Windows 10 のあたらしい Web ブラウザーの F12 開発者ツール
PDF
Microsoft Edgeで サポートされる 新しい API について
PDF
Windows 10 の あたらしい Web ブラウザー について
高品質な Teams アプリを開発するためのポイント
PWA on Windows
これでできる! Microsoft Teams アプリ開発のポイント徹底解説
Web プラットフォーム再考 ~PWA のもたらす未来の光と影~
Microsoft Edge のFIDO サポート状況
JavaScript と Bot Service を使った Bot 開発
Web サーバー管理者のための Azure App Service 再入門
Microsoft Bot Framework と Cognitive Services を活用した 業務サポートBOT 構築
JS で Bot つくろうぜ! ~刮目せよ!、これがMSのBot Framewok だ!!~
For every people achieve more : マイクロソフトの Inclusive Design について
Movable Type から BOT を作ろう! ~ Data API と Microsoft BOT Framework ~
Microsoft Edge 最新アップデートとこれから
Visual Studio 2015 を使用した Cordova アプリの開発
html5j Webプラットフォームの紹介
Microsoft edge deep dive
Edge と IE、来年からの Web 制作
マイクロソフトにおけるエバンジェリズム活動
Windows 10 のあたらしい Web ブラウザーの F12 開発者ツール
Microsoft Edgeで サポートされる 新しい API について
Windows 10 の あたらしい Web ブラウザー について

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PDF
Machine learning based COVID-19 study performance prediction
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PDF
MIND Revenue Release Quarter 2 2025 Press Release
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Review of recent advances in non-invasive hemoglobin estimation
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
The AUB Centre for AI in Media Proposal.docx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
MIND Revenue Release Quarter 2 2025 Press Release

NativeScript 環境のインストールとはじめてのプロジェクト実行

  • 5. Target device requirements •Android API Level 17+ •iOS 9+ •The latest official version of NativeScript
  • 6. Install : 2 type build environment. NativeScript Core NativeScript with Angular
  • 7. Install : NativeScript Core • Node.js • Java 8 SDK • Android SDK • Android Emulator • Google Chrome
  • 8. Instllation 1/3 Step 1: Install Node.js (LTS) Step 2: Install the NativeScript CLI npm install -g nativescript tns Verify the installation was successful by running tns command. verify the installation was successful by running tns
  • 9. Instllation 2/3 - Windows Step 3: Install iOS and Android requirements Window (use cmd.exe and admin privilege) @powershell -NoProfile -ExecutionPolicy Bypass - Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript. org/setup/win'))"
  • 10. Instllation 2/3 - macOS Step 3: Install iOS and Android requirements macOS (use sudo) ruby -e "$(curl -fsSL https://www.nativescript.org/setup/mac)"
  • 11. Instllation 3/3 tns doctor You can see the following message if you succeed. “No issues were detected” Step 4: Verify the setup
  • 12. Unfortunately, you will not success this install work. Maybe, probably.
  • 13. My recommendation You should choose Advanced setup if you are real man. • You must always fight using administrator privileage. • Do not use Powershell never.
  • 14. Create first app with NativeScript Core
  • 15. Create your first NativeScript App tns create HelloWorld --template nativescript-template-tutorial Step 1: Create app project. Step 2: Execute the following the command. cd HelloWorld tns run android
  • 16. Unfortunately, you will not succeed run your first app like a your first l♡ve. Maybe, probably. You will see the following message: “Cannot find connected devices.”
  • 17. Other disasters that attack you
  • 18. Demo Create and launch My fist NativeScript App
  • 19. Structure of basic app project Global style for app. Start module for app. UI code for main-page.xml. Markup (XML) for UI page. Detailed dependency of app. Node module,including nativescript modules. Settings for each mobile platforms. Visual resource for each mobile platforms.
  • 20. Incompatible with Web development Markup <Page> <StackLayout> <Label id="Label1" text="This is Label!" /> <Button text="This is Button!" tap="buttonTap" /> </StackLayout> </Page> var view = require("ui/core/view"); function buttonTap(args) { count++; var parent = args.object.parent; var lbl = view.getViewById(parent, "Label1"); lbl.text = "You tapped " + count + " times!"; } exports.buttonTap = buttonTap; Code
  • 22. NativeScript Sidekick Companion tool for NativeScript development. • Create project • JavaScript, TypeScript,Angular • Some app type templates • Build project (Local/Cloud) • Manage Plugin • Run on the device/emulator.
  • 23. NativeScript PlayGrand On the fly test environment for NativeScript • Coding with an editor on the Web browser. • Show the preview to mobile device with QR code. • Need a dedicated mobile application.
  • 24. Visual Studio & Visual Studio Code plugins • Create project • JavaScript, TypeScript,Angular • Some app type templates • Build project (Local/Cloud) • Manage Plugin • Run on the device/emulator. • Debug feature • Coding helping feature
  • 25. Summary • NativeScript can develop cross platform mobile app with Angular.js + TypeScript or JavaScript. • The development method is not very compatible with web development. • Abundant tools and learning contents are prepared.
  • 27. Reference • Native mobile apps with Angular, TypeScript, JavaScript – NativeScript • Play and Try NativeScript on Your Device – {N} Playground • The total package for truly native mobile development