Skip to content

Instantly share code, notes, and snippets.

@creotiv
Created February 28, 2020 09:41
Show Gist options
  • Save creotiv/a0e1e27c0e19a806cb0fc2ca457af438 to your computer and use it in GitHub Desktop.
Save creotiv/a0e1e27c0e19a806cb0fc2ca457af438 to your computer and use it in GitHub Desktop.
import {Platform, StyleSheet} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
...Platform.select({
ios: {
backgroundColor: 'red',
},
android: {
backgroundColor: 'blue',
},
}),
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment