-
Hello, I'm currently working on a project at the company that uses React Native for some screens in an Android/iOS native application(brownfield). I proceeded by referring to the official RN docs, and the current structure is organized as follows.
Then I found RNEF and tried to use it and I have a few questions here.
I'm inquiring about the potential benefits of RNEF integration for our project. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's totally up to you. Using a submodule may make it easier for your native project to consume specific version of react-native app, but it's not a requirement. For example, you could expose built .aar/.xcframework files through artifactory or some other package system.
You can build targets for distribution and debug purposes too, up to you. At Callstack we often set up both, but that's your team's preference.
The idea is to abstract all the React Native related code in a framework, so you don't have to integrate it within your native project code (tight coupling, hard to maintain, requires some RN knowledge from native devs). Otherwise, you're doing a, let's say, "classic" way of integrating RN into your project, with all the setup downsides, that will likely force some folders structure changes upon your native project too. |
Beta Was this translation helpful? Give feedback.
That's totally up to you. Using a submodule may make it easier for your native project to consume specific version of react-native app, but it's not a requirement. For example, you could expose built .aar/.xcframework files through artifactory or some other package system.
You can build targets for distribution and debug purposes too, up to you. At Callstack we often set up both…