This app is based on the sample Svelte Native app at svelte-native/tree/master/demo
The main difference is that the counter is not lost when you quit the app and restart it. This required two changes:
useLocalStorage.js
. (This uses nativescript-localstorage, which provides an API like the browser's local storage, but backed by a file on the device.)cd
into the foldernpm install
tns run android --bundle