concept Platform api in category react native

appears as: Platform API
React Native in Action

This is an excerpt from Manning's book React Native in Action.

10.1.2 Detecting the platform using the Platform API

Another way to detect and perform logic based on the platform is to use the Platform API. Platform has two properties. The first is an OS key that reads either ios or android, depending on the platform.