styles.js 2.89 KB
Newer Older
李彥志's avatar
李彥志 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
import {
    StyleSheet,
    Dimensions
  } from 'react-native';

  const { width, height } = Dimensions.get('window');
  export default StyleSheet.create({
    title: {
      fontSize: 17,
      lineHeight: 22,
      letterSpacing:-0.41,
      paddingTop: 13,
      color: 'black',
    },
    container: {
      flex: 1,
      backgroundColor: '#F8F8F8',
      alignItems: 'center',
      width,
      height: height - 64,
      position: 'relative'
    },
    rowContainer: {
      height: 44,
      backgroundColor: '#FFFFFF',
      borderBottomWidth: StyleSheet.hairlineWidth,
      borderBottomColor: '#BCBBC1',
      marginHorizontal: 15,
      flexDirection: 'row',
    },
    ios :{
        color: 'black',
        textAlign: 'center',
        justifyContent: 'center',
        fontSize: 17,
        paddingTop: 13,
        paddingBottom: 9,
    },
    rowText: {
      fontSize: 17,
      color: '#000000',
      paddingTop: 11,
      paddingLeft: 1
    },
    nextArrow: {
      marginVertical: 15,
      width: 8,
      height: 13
    },
    flexContainer: {
      // 容器需要添加direction才能变成让子元素flex
      flexDirection: 'row'
  },
  scrollFlex: {
    flex: 1
  },
  rowItemRight: {
    alignItems: 'flex-end',
    flex: 1,
  },
  rowItemLeft: {
    alignItems: 'flex-start',
    flex: 1,
  },
  subRowContainer: {
    height: 36,
    backgroundColor: '#F8F8F8',
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderBottomColor: '#BCBBC1',
    borderTopWidth: StyleSheet.hairlineWidth,
    borderTopColor: '#BCBBC1'
  },
  rowBackground: {
    width,
    backgroundColor: '#FFF',
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderBottomColor: '#BCBBC1',
    borderTopWidth: StyleSheet.hairlineWidth,
    borderTopColor: '#BCBBC1'
  },
  emptyRowContainer: {
    flex: 1,
    borderTopWidth: StyleSheet.hairlineWidth,
    borderTopColor: '#BCBBC1',
    backgroundColor: '#F8F8F8',
    width,
    height: 80
  },
  btnLogoutText: {
    color: 'red',
    textAlign: 'center',
    alignItems: 'center',
    justifyContent: 'center',
    fontSize: 15,
    backgroundColor: 'transparent'
  },
  btnLogout: {
    left: 16,
    right: 16,
    height: 44,
    borderRadius: 20,
    backgroundColor: '#FFF',
    position: 'absolute',
    bottom: 27,
    justifyContent: 'center',
    alignItems: 'center'
  },
  headerTitleContainer: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    paddingRight: 30
  },
  headerTitleTxt: {
    color: '#000',
    fontSize: 17,
    lineHeight: 22,
    letterSpacing: -0.41
  },
  nav_left_icon_container: {
    marginLeft: 20
  },
  nav_icon: {
    width: 27,
    height: 27
  },
  alerterContainer: {
    position: 'absolute',
    top: 0,
    flex: 1
  },
  logoutMessage: {
    fontSize: 13,
    lineHeight: 22,
    letterSpacing: -0.31,
    color:'#4A4A4A'
  },
  logoutTitle: {
    fontSize: 17,
    lineHeight: 22,
    letterSpacing: -0.41,
  }

  });