Git Product home page Git Product logo

native_app's Introduction

Native App

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)

  1. 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

Angular CLI in Action

Create Component With Angular CLI

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

Packages

npm i nativescript-ui-sidedrawer

Debuggin

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

Links

Run this whenever you add new images into res folder

tns prepare android
Issue Resolve

this bug happens when you add extra resources to the project

  • SideDrawer Bug
    • Delete These Files/Folder And than run npm install and run tns run android/ios --bundle
      • hooks
      • node_modules
      • platform
      • package-lock.json
      • webpack.config.js
Using Sass

tns install sass

Icons

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'

native_app's People

Contributors

ryanhustler420 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.