npm install -g nativescript
npx degit halfnelson/svelte-native-template app-name
cd app-name
npm install
app/App_Resources/iOS/build.xcconfig
platforms/ios/Pods/Pods.xcodeproj/project.pbxproj
IPHONEOS_DEPLOYMENT_TARGET
to use a newer version than 8.0 such as 14.0.ns run ios --device "{device-name}"
.
For example, device-name
can be iPhone 13
.ns run android
.Other commands include ns preview
and ns build
.
Start by editing app/App.svelte
.
When changes are saved, Webpack builds and re-bundles the entire app
and copies it to the simulator, and re-renders the app.
This takes about four seconds.