Skip to content

Commit

Permalink
docs: add a mobile app FAQ (#14559)
Browse files Browse the repository at this point in the history
* docs: add a mobile app FAQ

* Update 99-faq.md
  • Loading branch information
benmccann authored Dec 4, 2024
1 parent 85dec47 commit 4b802db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions documentation/docs/07-misc/99-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ 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 a mobile app with Svelte?

While most mobile apps are written without using JavaScript, 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 [Tauri](https://v2.tauri.app/start/frontend/sveltekit/) or [Capacitor](https://capacitorjs.com/solution/svelte). Mobile features like the camera, geolocation, and push notifications are available via plugins for both platforms.

Svelte Native was an option available for Svelte 4, but note that Svelte 5 does not currently support it. Svelte Native lets you write NativeScript apps using Svelte components that contain [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.
Expand Down

0 comments on commit 4b802db

Please sign in to comment.