|
|
|
Ask HN: Does using React Native and React really help cross-platform code reuse?
|
|
3 points
by sazary
3722 days ago
|
|
Hi We're planning to release a MVP for a product that needs web, iOS & Android front ends, and they have some similar components in them. My question is, if you have any first hand experience using React for creating your web front end & React Native for your mobile apps, did you find code reuse between these platforms easy? Was it something happening routinely? I know that theoretically it is possible to reuse some codes between them, but is it easy & common to happen in practice? |
|
Keep in mind that React and React Native are from Facebook and reflect its needs not necessarily those of a single developer or small shop. My understanding is that for Facebook, the problem React and React Native address is allowing feature based teams rather than platform based teams. For example, the new "like" button could have Web, Android, and iOS developers all sitting together sharing a common language while still developing on somewhat divergent code bases.
That's not to say that one way data flow isn't useful. But there's still still no silver bullet.
Good luck.