The examples are managed on the main
branch only - the individual flavor branches are automatically updated when pushing to main
Each example is split into it's own folder within apps, for example:
apps/{example}/{flavor}
Each example can utilize shared libs
for their examples to reuse across flavors, for example:
libs/nativescript-battery
^ is used across all apps/battery
examples.
Since each flavor utilizes it's own node_modules dependencies you want to clean each example before running it, for example:
npx nx run battery-angular:clean
You can now try out the example:
npx nx run battery-angular:ios
Warning: Do not edit the individual flavor branches manually!.
-
TypeScript: https://new.nativescript.org
-
Angular: https://new.nativescript.org/angular
-
JavaScript: https://new.nativescript.org/javascript
-
TypeScript: https://new.nativescript.org/typescript
Full URLS (used in redirects)
/ /typescript
/angular https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/angular?file=src%2Fapp%2Fitem%2Fitems.component.html&title=NativeScript%20Starter%20Angular
/javascript https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/javascript?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20JavaScript
/react https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/react?file=src%2Fcomponents%2FHomeScreen.tsx&title=NativeScript%20Starter%20React
/svelte https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/svelte?file=app%2Fcomponents%2FHome.svelte&title=NativeScript%20Starter%20Svelte
/typescript https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/typescript?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20TypeScript
/vue https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/vue?file=app%2Fcomponents%2FHome.vue&title=NativeScript%20Starter%20Vue