Skip to content

Instantly share code, notes, and snippets.

@santiagopoli
Last active May 5, 2017 21:50
Show Gist options
  • Save santiagopoli/fb23f8f251d40d704f9ac85e87475c31 to your computer and use it in GitHub Desktop.
Save santiagopoli/fb23f8f251d40d704f9ac85e87475c31 to your computer and use it in GitHub Desktop.
const platformSpecific = ({ios, android}) => (Platform.OS == ‘ios’) ? ios : android
<View style={{ color: platformSpecific({ ios: 'black', android: 'white' }) }}/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment