You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why doesn't the official team provide React Native as a static or dynamic library for iOS? This would significantly simplify the integration of native applications.
Integrating React Native into native Android applications is genuinely straightforward; it just requires these configurations,
The integration methods mentioned in the official documentation currently involve native developers dealing with node_modules and necessitate moving the native project into the "ios" directory, which is quite unfriendly. It would be better if the official team could provide the React Native as xcframework libraries, allowing native developers to directly import them.
The text was updated successfully, but these errors were encountered:
I understand your struggle and I do agree that it would be a better world. However, with our current setup, this is not achievable. React Native is a collection of dependent pods from Cocoapods and, as of today, cannot be archived as a single XCFramework. You will have to deal with ~30 separate XCFrameworks and, at that point, it would be much much harder.
We have plan in the future to improve the integration between React Native and Native application, so, please, bear with us.
Meanwhile, Integrating a React Native in an app is a matter of properly create a Podfile using the use_react_native! and the react_native_post_install hook and to extend the RCTAppDelegate class.
You should be able to integrate React Native even if the app is not in the ios folder: just pass the proper parameters to the use_react_native! function. We are doing that in the RNTester app, for example.
Why doesn't the official team provide React Native as a static or dynamic library for iOS? This would significantly simplify the integration of native applications.
Integrating React Native into native Android applications is genuinely straightforward; it just requires these configurations,
The integration methods mentioned in the official documentation currently involve native developers dealing with
node_modules
and necessitate moving the native project into the "ios" directory, which is quite unfriendly. It would be better if the official team could provide the React Native as xcframework libraries, allowing native developers to directly import them.The text was updated successfully, but these errors were encountered: