If i build an iOS app in React Native , will it run out of the box in Android or do i have to make changes in order to run it in Android? How much code reuse is there in React Native?
I don't know for sure since I haven't used that toolkit. If it's anything like other toolkits then you won't have to make large changes. There may be a few elements which don't exist in the other OS or aren't targetable by the same javascript, but not many of them. The toolkit usually has a way to target those with something like if(ios){}, and often have OS or device specific ones like if ios(<8){} or if(device=ipad){}.
Gary Torres
I'm a software developer. Passionate for NodeJS, Javascript and web technologies.
You will get to keep the logic and structure of the components, how ever you would have to rewrite the UI used in them.
The approach is different from other cross-platform frameworks out there (like ionic with phonegap or xamarin) which is code once, run everywhere with a single code base.
The approach of React Native is, learn once, write everywhere. This means that the same team of engineers who built the iOS version will be able to understand enough to build the Android version however they will still require some knowledge of it to do it.
With React Native will end up having two separate projects, which is alright because they are for two different platforms, but their internal structure will be very similar.
You can see what Im talking about here: https://rnplay.org/apps/sXriww This is a React Native component built for iOS and Android. They are two different files (two code bases) with different UI templates but the structure in them is the same.