Posted On: Feb 22, 2018
React Native Platform module is used to detect the platform of device in which the application is running. You can use the below code detect platform in React Native.
import {Platform, StyleSheet} from 'react-native'; const styles = StyleSheet.create({ height: Platform.OS === 'ios' ? 200 : 100, });
Never Miss an Articles from us.
React Native is a mobile app development platform that allows you to create android and ios apps only using Javascript. Re..
Yes, we can. React Native smoothly combines the components written in Objective-C, Java, or Swift...
Thousands of apps are created using React Native. Here is the list of some popular companies who are using React Native..