Hi! Our team decided to write a new mobile app on ReactNative, and started with CRNA+Expo. Unfortunately, we need to use some native modules and have to detach. But we loved the way Expo provides development process and still want to use it. We are thinking about the followed scheme:
-
App Component: develop most of app cases in Expo environment, skip some native-required parts or replace them by Expo alternatives. For example, we cant use WebView module (because of silly UIWebView) in final app, but it is ok for testing base functionality.
In a result it will be npm-packaged<AppComponent/>
. -
App Container: bundle all native modules and provide them to
<AppComponent/>
.
Something like this:<AppComponent providedModules={{webView: WKWebView, payment: nativePayments}}>
So, we can focus on base App development with fast live reload on the real devices.
Is that architecture reasonable? We are totally newbies in RN, and maybe just don’t know any other solutions for our case. Thank you!
(Oh, and sorry for my English)