Platform
Detect what is the platform in which the app is running.
This piece of functionality can be useful when only small parts of a component are platform specific.
import { Platform } from 'react-native';
API
Static properties
OS "web"
This value will be "web"
when running in a Web browser.
Static methods
select (config) => any
Takes an object containing Platform.OS
values as keys and returns the value for the platform you are currently running on.