Skip to content

Instantly share code, notes, and snippets.

@nirsky
Created July 24, 2017 10:17
Show Gist options
  • Save nirsky/4bef44be31dd18b8d09ce5aeeb4712f4 to your computer and use it in GitHub Desktop.
Save nirsky/4bef44be31dd18b8d09ce5aeeb4712f4 to your computer and use it in GitHub Desktop.
import {vw, vh} from 'react-native-viewport-units';
const styles = StyleSheet.create({
container: {
...
},
box: {
width: 80 * vw,
height: 67 * vh,
padding: 2.6 * vw,
...
},
title: {
fontSize: 5.3 * vw,
marginBottom: 2.6 * vw,
fontWeight: 'bold',
color: 'black'
},
text: {
fontSize: 3.6 * vw,
color: 'black'
},
buttonsContainer: {
...
},
button: {
width: 40 * vw,
height: 10.7 * vw,
borderRadius: 27 * vw,
marginBottom: 2.6 * vw,
...
},
buttonText: {
fontWeight: 'bold',
fontSize: 3.6 * vw,
color: 'white'
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment