nativescript demo

liuyuqi-dellpc ec8049350e add README.md 3 months ago
.vscode e5b9053b56 init 7 months ago
App_Resources e5b9053b56 init 7 months ago
app e5b9053b56 init 7 months ago
.editorconfig e5b9053b56 init 7 months ago
.gitignore e5b9053b56 init 7 months ago
README.md ec8049350e add README.md 3 months ago
jsconfig.json e5b9053b56 init 7 months ago
nativescript.config.ts e5b9053b56 init 7 months ago
package-lock.json e5b9053b56 init 7 months ago
package.json e5b9053b56 init 7 months ago
webpack.config.js e5b9053b56 init 7 months ago

README.md

nativescript-demo

nativescript类似于uniap,Convorda,实现 js+html 开发,打包为apk,ios等应用。

Usage


# Install dependencies
npm install

# Build for production
tns build <platform> --bundle

# Build, watch for changes and debug the application
tns debug <platform> --bundle

# Build, watch for changes and run the application

npm install nativescript@6.5.1 -g npm remove -g nativescript

ns create demo1 --appid "me.yoqi.nativescript.demo1"

ns run android ns run --bundle

ns build android

安装插件

tns plugin add nativescript-geolocation

使用:

var geolocation=require("nativescript-geolocation")

程序入口:

"main": "app/app.js",