From 35701b22521c9321fb9cef7c3a3d511f4873be75 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:22:05 -0700 Subject: [PATCH 1/2] docs: add FAQ about mobile apps --- documentation/docs/05-misc/01-faq.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/documentation/docs/05-misc/01-faq.md b/documentation/docs/05-misc/01-faq.md index cfcdcf4fa51f..ba775dc39ead 100644 --- a/documentation/docs/05-misc/01-faq.md +++ b/documentation/docs/05-misc/01-faq.md @@ -102,6 +102,14 @@ If you need hash-based routing on the client side, check out [svelte-spa-router] You can see a [community-maintained list of routers on sveltesociety.dev](https://sveltesociety.dev/packages?category=routers). +## How do I write my mobile app? + +The [most popular solution](https://bitrise.io/blog/post/the-state-of-mobile-app-development-in-2022) for building mobile apps is to use the Android and iOS SDKs directly, which makes building a mobile app completely independent of which JavaScript framework you use. Similarly, the cross-platform Flutter library, which uses the Dart programming language, is very popular as well and [often preferred to other solutions](https://survey.stackoverflow.co/2024/technology/#2-other-frameworks-and-libraries). + +If you'd like to leverage your existing Svelte components and knowledge of Svelte when building mobile apps, you can turn a SvelteKit SPA into a mobile app with [Capacitor](https://capacitorjs.com/solution/svelte). Mobile features like the camera, geolocation, and push notifications are available via [plugins](https://capacitorjs.com/docs/plugins). + +Finally, Svelte Native lets you write NativeScript apps using Svelte components containing [NativeScript UI components](https://docs.nativescript.org/ui/) rather than DOM elements, which may be familiar for users coming from React Native. + ## Can I tell Svelte not to remove my unused styles? No. Svelte removes the styles from the component and warns you about them in order to prevent issues that would otherwise arise. From 10a1680a590849211f7728e5ae3df711d21e378e Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:28:31 -0700 Subject: [PATCH 2/2] add link to SvelteKit SPA docs --- documentation/docs/05-misc/01-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/05-misc/01-faq.md b/documentation/docs/05-misc/01-faq.md index ba775dc39ead..7ee21fdf82b0 100644 --- a/documentation/docs/05-misc/01-faq.md +++ b/documentation/docs/05-misc/01-faq.md @@ -106,7 +106,7 @@ You can see a [community-maintained list of routers on sveltesociety.dev](https: The [most popular solution](https://bitrise.io/blog/post/the-state-of-mobile-app-development-in-2022) for building mobile apps is to use the Android and iOS SDKs directly, which makes building a mobile app completely independent of which JavaScript framework you use. Similarly, the cross-platform Flutter library, which uses the Dart programming language, is very popular as well and [often preferred to other solutions](https://survey.stackoverflow.co/2024/technology/#2-other-frameworks-and-libraries). -If you'd like to leverage your existing Svelte components and knowledge of Svelte when building mobile apps, you can turn a SvelteKit SPA into a mobile app with [Capacitor](https://capacitorjs.com/solution/svelte). Mobile features like the camera, geolocation, and push notifications are available via [plugins](https://capacitorjs.com/docs/plugins). +If you'd like to leverage your existing Svelte components and knowledge of Svelte when building mobile apps, you can turn a [SvelteKit SPA](https://kit.svelte.dev/docs/single-page-apps) into a mobile app with [Capacitor](https://capacitorjs.com/solution/svelte). Mobile features like the camera, geolocation, and push notifications are available via [plugins](https://capacitorjs.com/docs/plugins). Finally, Svelte Native lets you write NativeScript apps using Svelte components containing [NativeScript UI components](https://docs.nativescript.org/ui/) rather than DOM elements, which may be familiar for users coming from React Native.