Skip to content
Discussion options

You must be logged in to vote

There is no single right structure. It depends on how different your web and native apps need to be. Most multi-platform apps keep one codebase and share as much as they can. For small differences, use Platform.OS. When a component or screen needs a different version for web, add a *.web.js file next to it. See the multi-platform guide.

If you start a new app, Expo sets this up for you, and Expo Router lets you share screens and navigation across platforms.

Closing, as this is an old question. Feel free to open a new discussion if you have a more specific question.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zoontek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants