Created
May 5, 2017 08:18
-
-
Save aandrewww/62903af4937069289a30ad06cedcc673 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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