Reputation: 5900
I'm working on an app that may be rewritten in React Native. (i've no experience in React) The problem is that work will continue on the 'legacy app', new features/business logic will be added while the React version is being written. So the React version will constantly be playing catchup.
Any code written in the legacy app is wasted effort and I want any code written for the legacy app to be reusable for the React version.
One option is to start writing in React now and import that into the existing legacy app.
Having read through the docs, I can see that you can integrate React components into an existing app from this doc https://reactnative.dev/docs/integration-with-existing-apps
Which is great but not all things have a UI, eg new business logic.
Is there a way to write business logic in React Native and consume that natively in iOS/Android without going through UI views?
Upvotes: 0
Views: 35