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

In my experience code-share between React and React Native is extremely difficult as your UI code is so significantly different with native components and what not.

At least with Angular/Ionic you can directly share UI code between the two as its all HTML and CSS.

Still, I really enjoy working with React and React Native because I it's one API and mental model to learn.



You might want to check out https://github.com/necolas/react-native-web - that has implementations for a lot of the React Native primitives on the web, to make code-sharing easier.


Have you tried it recently? I don't think I've had this problem with recent versions.




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

Search: