Sup Stackers!
Have any of you all ever tried converting a React website to a mobile app?
Preferably: React app -> React Native for IOS and Android so there's one less codebase to maintain.
Ideally like a tool that does this or some automations that help?
I'm curious if you have any recommendations for what to do or avoid?
Ideally
For an existing React/Vite app, I'd try Capacitor first if the goal is to keep the current UI and one main codebase. It packages your built web app for iOS/Android and exposes native features through plugins. You can keep your current components; adopting Ionic's UI library is optional.
A small prototype would be:
webDirto Vite's build output, usuallydist.npx cap sync.The tradeoff is that your UI runs in a WebView, and native project settings still need maintenance. If native controls and interaction are essential, React Native is a UI port: components such as
ViewandTextreplace the web elements. API clients and platform-independent business logic can still be shared.https://capacitorjs.com/docs/getting-started · https://reactnative.dev/docs/intro-react-native-components
use ionic framework