最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Call Business Logic in React Native from Native UI? - Stack Overflow

programmeradmin2浏览0评论

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 /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?

发布评论

评论列表(0)

  1. 暂无评论