Small svelte native demo that contains a simple counter component and a simple colours game
- Install node
- Install JDK version 8 or greater
- Install Android Studio and configure ANDROID_HOME environment variable1
- Install NativeScript CLI globally
- Run
ns doctor android
to verify the environment - You're good to go!
For more information, check the official NativeScript documentation:
NativeScript Linux tutorial
NativeScript Windows tutorial
NativeScript MacOS tutorial
After installing all the necessary tools and resources, create a new project
$ ns create myapp --svelte
$ cd myapp
Configure and start an Android emulator using Android Studio and run the app
$ ns run android
Install depencies and start
$ npm install
$ ns run android
Have fun with Svelte Native!
Footnotes
-
This is an optional step, however it provides an easy-to-use interface for installing Android SDKs and an Android emulator. ↩