Can we share code between react webapp and react native app and is react-native production ready

后端 未结 10 1408
终归单人心
终归单人心 2021-02-01 07:11

We have a stable version of a widget developed with reactjs. We would like to develop mobile version of the same. Is it better to develop with react native and share the code ac

10条回答
  •  情深已故
    2021-02-01 07:16

    You can certainly share the storage and the network layer b/w the web and mobile react code base.
    Although, in practice you would be only able to share a part of the storage layer, because you might want to fetch data differently in case of a mobile app and a web app.

提交回复
热议问题