public_css.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import React from 'react';
  2. import {Dimensions, PixelRatio, StyleSheet} from 'react-native';
  3. const public_css = StyleSheet.create({
  4. body: {
  5. flex: 1,
  6. display: 'flex',
  7. backgroundColor: '#ffffff',
  8. },
  9. textListStyle: {
  10. marginTop: 10,
  11. backgroundColor: '#FFFFFF',
  12. height: 40,
  13. },
  14. textListFontStyle: {
  15. fontSize: 15,
  16. display: 'flex',
  17. // flexDirection: 'row',
  18. justifyContent: 'center',
  19. },
  20. // 搜索栏样式
  21. search: {
  22. alignItems: 'center',
  23. justifyContent: 'center',
  24. backgroundColor: '#ffffff',
  25. height: 50,
  26. },
  27. //通用按钮样式,一个按钮样式由buttonView、button、buttonText组成
  28. buttonView: {
  29. alignItems: 'center',
  30. // flex: 3,
  31. },
  32. //通用按钮样式
  33. button: {
  34. marginTop: 30,
  35. width: Dimensions.get('window').width * 0.8,
  36. height: 34,
  37. borderRadius: 10,
  38. backgroundColor: '#1199EA',
  39. justifyContent: 'center',
  40. alignItems: 'center',
  41. },
  42. //通用按钮样式
  43. buttonText: {
  44. fontSize: 15,
  45. textAlign: 'center',
  46. color: 'white',
  47. },
  48. //通用textInput样式,一个输入框样式由View、Text、lineTopBottom、textInput组成
  49. textInputStyle: {
  50. flex: 5,
  51. // marginRight: 10,
  52. marginLeft: 10,
  53. fontSize: 16,
  54. marginTop: 4,
  55. },
  56. //通用textInput样式
  57. view: {
  58. flexDirection: 'row',
  59. height: 50,
  60. // width: Dimensions.get('window').width,
  61. borderBottomWidth: 3 / PixelRatio.get(),
  62. borderColor: 'rgb(208,208,208)',
  63. alignItems: 'center',
  64. },
  65. //通用textInput样式
  66. text: {
  67. lineHeight: 50,
  68. fontSize: 16,
  69. fontFamily: 'PingFang-SC-Regular',
  70. color: '#333333',
  71. marginLeft: 5,
  72. },
  73. // 客户信息选择箭头样式
  74. arrow: {
  75. fontFamily: 'PingFang-SC-Regular',
  76. fontSize: 25,
  77. color: '#C7C7CC',
  78. opacity: 1,
  79. textAlign: 'center',
  80. },
  81. //通用textInput样式
  82. lineTopBottom: {
  83. borderBottomWidth: 3 / PixelRatio.get(),
  84. borderColor: 'rgb(208,208,208)',
  85. alignItems: 'center',
  86. },
  87. //提交按钮和清除按钮样式
  88. bottomStatus: {
  89. height: 50,
  90. flexDirection: 'row',
  91. },
  92. statusBtn: {
  93. flex: 1,
  94. flexDirection: 'row',
  95. justifyContent: 'center',
  96. alignItems: 'center',
  97. },
  98. statusLBtn: {
  99. backgroundColor: '#e6e8ea',
  100. },
  101. statusRBtn: {
  102. backgroundColor: '#2A67FE',
  103. },
  104. // 列表尾部组件样式
  105. footNoData: {
  106. height: 30,
  107. alignItems: 'center',
  108. justifyContent: 'flex-start',
  109. },
  110. footNoDataText: {
  111. color: '#999999',
  112. fontSize: 14,
  113. marginTop: 5,
  114. marginBottom: 5,
  115. },
  116. footerLoad: {
  117. flexDirection: 'row',
  118. height: 24,
  119. justifyContent: 'center',
  120. alignItems: 'center',
  121. marginBottom: 10,
  122. },
  123. footUpLoad: {
  124. height: 30,
  125. alignItems: 'center',
  126. justifyContent: 'center',
  127. },
  128. footUpLoadText: {
  129. color: '#999999',
  130. fontSize: 14,
  131. marginTop: 5,
  132. marginBottom: 5,
  133. },
  134. });
  135. export default public_css;