Guest User

Untitled

a guest
Feb 23rd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Dimensions, StyleSheet } from 'react-native';
  2.  
  3. const { width, height } = Dimensions.get('window');
  4.  
  5. // Used via Metrics.baseMargin
  6. const Metrics = {
  7.     screenWidth: width,
  8.     screenHeight: height,
  9. };
  10.  
  11.  
  12. export default StyleSheet.create({
  13.     container: {
  14.         flex: 1,
  15.         backgroundColor: "white"
  16.     },
  17.     imgContainer: {
  18.         flex: 1,
  19.     },
  20.     mainImage: {
  21.         flex: 1, width: Metrics.screenWidth, height: Metrics.screenHeight,
  22.     },
  23.     loginButton: {
  24.         flex: 0.1,
  25.         backgroundColor: '#1D2F3F',
  26.         alignItems: 'center',
  27.         justifyContent: 'center',
  28.     },
  29.     btnText: {
  30.         color: 'white',
  31.         fontSize: 20,
  32.     },
  33.     header: {
  34.         backgroundColor: "#2E82FF",
  35.         height: 60,
  36.         elevation: 10,
  37.         flexDirection: 'row',
  38.         paddingTop: 10
  39.     },
  40.     locButton: {
  41.         flex: 0.08,
  42.         flexDirection: 'row',
  43.         backgroundColor: '#e74c3c',
  44.         marginLeft: 60,
  45.         marginRight: 60,
  46.         marginTop: 30,
  47.         alignItems: 'center',
  48.         justifyContent: 'center',
  49.         elevation: 5
  50.     },
  51.     locBtnText: {
  52.         color: 'white',
  53.         fontSize: 18,
  54.         fontWeight: 'bold'
  55.     },
  56.     locInput: {
  57.         top: 20,
  58.         left: 20,
  59.         width: (Metrics.screenWidth) - 40,
  60.         position: 'absolute',
  61.         flex: 1,
  62.         flexDirection: 'row',
  63.         backgroundColor: 'white',
  64.         borderRadius: 20
  65.     },
  66.     eventContainer: {
  67.         flex: 0.4
  68.     },
  69.     eventBox: {
  70.         flex: 0.5,
  71.         backgroundColor: "#1FA1FF",
  72.         margin: 10,
  73.         justifyContent: 'center',
  74.         alignItems: 'center',
  75.         elevation: 5,
  76.         flexDirection: 'row'
  77.     },
  78.     conBox: {
  79.         flex: 0.6,
  80.         margin: 40,
  81.         justifyContent: 'center',
  82.         alignItems: 'center',
  83.         borderRadius: 7,
  84.         elevation: 10,
  85.         borderColor: '#ccc'
  86.     },
  87.     mainText: {
  88.         color: '#1FA1FF',
  89.         fontWeight: 'bold',
  90.         fontSize: 30
  91.     }
  92. });
Advertisement
Add Comment
Please, Sign In to add comment