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

Creating platform specific UI Components

In this chapter we have covered some of the platforms that you can target using React Native. We can build applications targeting anything from watches to desktops to game consoles. While we may be inclined to try to keep our codebase identical across all the platforms we develop for, this may take away from the user experience. In order to build a better application, it may be worth taking the time to build components that feel like they belong on their particular target.

In this recipe, we're going to take a look at a couple of strategies for making platform specific UI Components. We will cover the built-in targets iOS and Android. These patterns can be extended to other targets such as Windows or Mac ...

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