Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)



It 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-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-...) but still requires some conceptual care (like any API design).



You 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


Is 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.


It's definitely possible but hard to do well; dependency management is a pain.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: