Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native check os

import { Platform, StyleSheet } from 'react-native';

const styles = StyleSheet.create({
  height: Platform.OS === 'ios' ? 200 : 100
});
Source by reactnative.dev #
 
PREVIOUS NEXT
Tagged: #react #native #check #os
ADD COMMENT
Topic
Name
9+5 =