Sign in Go Pro

Build a React Native Application

Platform Specific React Native Code and Styles

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



React Native targets iOS and Android, but you will sometimes want a different look on each platform - or even entirely different components.

We look at three different ways to get different code and styles on each platform.

Summary of Content:

  • Using Platform.OS to detect Android vs iOS
  • Using to automatically change styles for different platforms
  • Using .ios.js and .android.js to use entirely different components on each platform




There are no comments on this lesson, start the conversation below ...

You need to go PRO to post comments.

Lessons in Build a React Native Application