Created
February 14, 2019 16:55
-
-
Save jdmunro/fc977ce70ec559e77c722034c0843984 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
// Mobile and web only | |
const style = selectOnPlatform({ | |
mobile: styles.mobileStyle, | |
web: styles.webStyle | |
}); | |
// Alternatively, analogous to Platform.select | |
const style = selectOnPlatform({ | |
android: styles.androidStyle, | |
ios: styles.iosStyle, | |
web: styles.webStyle | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment