4 ms·
Is it true that React Native cannot be integrated with an existing Swift/Obj-C codebase? For example, say that you want to implement login/register on top of
by tentativeuser 9y ago
Is it true that React Native cannot be integrated with an existing Swift/Obj-C codebase?
For example, say that you want to implement login/register on top of an existing Swift codebase. This is possible, right?
(May not have understood OP correctly.)
- tentativeuser 9y agoNvm! It is possible: https://facebook.github.io/react-native/docs/integration-with-existing-apps.html https://facebook.github.io/react-native/docs/integration-wit...
- tspike 9y agoIt's definitely possible but hard to do well; dependency management is a pain.
- mamcx 9y agoIs truly hard. And not even thing in use it for Xamarin or something else. I love to have a react-native-like for just the UI and do my code on swift/F# for the rest.
- crispinb 9y agoIt depends what you mean 'on top of'. If you mean adding some RN to an existing app, that is conceptually easy but practically quite messy (https://facebook.github.io/react-native/docs/integration-with-existing-apps.html https://facebook.github.io/react-native/docs/integration-wit...). If you mean adding native modules into an essentially RN app, that's practically very simple (https://facebook.github.io/react-native/docs/native-modules-ios.html https://facebook.github.io/react-native/docs/native-modules-...) but still requires some conceptual care (like any API design).
- bernadus_edwin 9y agoYou can use 5 line of code to push uiviewcontroller from xib or storyboard. Easier than encapsulate native code to library rn. Xamarin cannot do that