The first step is to import Platform from the 'react-native' package like so:
import { Platform } from 'react-native'
After you've done that, you can go ahead and access the OS type through Platform.OS allowing you to use it in conditional statements like
const styles = StyleSheet.create({
h...