O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Best practices for sharing code between platforms

In this chapter, we discussed developing  React Native applications for different platforms. While building our app we often develop for our favorite platform and then port to the remaining target(s). Generally, just like with the development platform, the iOS functionality of React Native is a bit more mature and stable than the Android counterpart. It should be noted that React Native was built for iOS first and the Android functionality hooks onto the existing architecture.

Whether you chose to port your application at the end or develop for multiple platforms at the same time you should attempt to keep as much of the code the same as possible and then branch off for platform specific code. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required