Requirement [Make Sure You Are Not Running ng serve Command Anywhere When Installing @angular/cli]
-
Nodejs
-
Angular CLI
- npm install -g @angular/cli
Initialize an app
- ng new ng-refresher
install nodejs npm install -g nativescript install Android Studio install jdk (atleast 8.x) [run below command it will ask you for the jdk installation] @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))" (Run as Administrator)
- Answer in sequence
- y
- y
- y
- y
check setup with command tns doctor create project with command tns create go to project directory and run tns run android --bundle
open xcode on mac and open project folder and select 'platforms' folder and than run emulator. you can stop xcode after emulator starts. than run below command.
go to project directory and run tns run ios --bundle [run xcode for mac]
open Android Studio on Windows/Mac and open project folder select 'platforms' folder and than run emulator. make an AVD and run that emulator on PC/MAC. and than hit command given below on cmd
go to project directory and run tns run android --bundle
ng g c layouts/stack ng g c layouts/flexbox ng g c layouts/grid ng g c layouts/absolute
ng g c challenges/challenge-edit ng g c auth ng g c shared/ui/action-bar ng g c challenges/challenge-tabs ng g c challenges/day-modal ng g c challenges/challenge-actions
npm i nativescript-ui-sidedrawer
tns debug android --bundle tns debug ios --bundle
than,
copy the url in the console and paste in broweser chrome-devtools://devtools/bundled/inspector.html?experiments=truews=localhost:40000
More, You can go to:
VS code -> Debug -> Open Configration -> NativeScript
it will open launch.json file and where you can chaneg debug settings related to nativeScript
- NativeScript UI SideDrawer
- For Generating Images for App_resources
- For Generating Images for App_resources
Run this whenever you add new images into res folder
tns prepare android
this bug happens when you add extra resources to the project
- SideDrawer Bug
- Delete These Files/Folder And than run
npm install
and runtns run android/ios --bundle
- hooks
- node_modules
- platform
- package-lock.json
- webpack.config.js
- Delete These Files/Folder And than run
tns install sass
FontAwesome Icons Image Convertor [1024 x 1024] For Generating Images for App_resources
NOTE:- - if icons doesn't work for iOS than use 'tns prepare'