|
|
3 years ago | |
|---|---|---|
| .vscode | 4 years ago | |
| App_Resources | 4 years ago | |
| app | 4 years ago | |
| .editorconfig | 4 years ago | |
| .gitignore | 4 years ago | |
| README.md | 3 years ago | |
| jsconfig.json | 4 years ago | |
| nativescript.config.ts | 4 years ago | |
| package-lock.json | 4 years ago | |
| package.json | 4 years ago | |
| webpack.config.js | 4 years ago |
nativescript类似于uniap,Convorda,实现 js+html 开发,打包为apk,ios等应用。
# 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",