Created
February 3, 2018 14:02
-
-
Save bbandydd/92871ceb9226c4193417f7ead60c5ca5 to your computer and use it in GitHub Desktop.
Styled-Component detect device
This file contains hidden or 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 MainView = styled.View` | |
| backgroundColor: ${Platform.OS === 'ios' ? 'black' : 'red'}; | |
| `; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment