News for hackers. Stuff that matters.
Re:React Native at Instagram by DenisM on Monday February 06, 2017 @07:30PM (#13585798)
So I see they have a lot of code reuse between RN iOS and RN Android.

How much, if any, code reuse can there be between React Native and React (proper)?

Re:React Native at Instagram by weixiyen on Monday February 06, 2017 @11:49PM (#13587120)
You can't re-use the UI portion but all the business logic, API calls, stores, socket connections, etc...

For Sleeperbot it's 50% code-sharing between desktop / mobile, and then 95% between iOS & Android.

Re:React Native at Instagram by DenisM on Tuesday February 07, 2017 @12:49AM (#13587379)
Thank you!
Re:React Native at Instagram by martin_bigio on Monday February 06, 2017 @08:42PM (#13586208)
Great Q. React and React Native use difference "renderers". I believe that with the right pattern to use a different set of low level components you could manage to reuse a big chunk, but this isn't something we have tried so I'm not that sure.