public_css.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. //通用按钮样式,一个按钮样式由buttonView、button、buttonText组成
  21. buttonView: {
  22. alignItems: 'center',
  23. // flex: 3,
  24. },
  25. //通用按钮样式
  26. button: {
  27. marginTop: 30,
  28. width: Dimensions.get('window').width * 0.8,
  29. height: 34,
  30. borderRadius: 10,
  31. backgroundColor: '#1199EA',
  32. justifyContent: 'center',
  33. alignItems: 'center',
  34. },
  35. //通用按钮样式
  36. buttonText: {
  37. fontSize: 15,
  38. textAlign: 'center',
  39. color: 'white',
  40. },
  41. //通用textInput样式,一个输入框样式由View、Text、lineTopBottom、textInput组成
  42. textInputStyle: {
  43. flex: 5,
  44. marginRight: 10,
  45. marginLeft: 20,
  46. fontSize: 16,
  47. marginTop: 4,
  48. },
  49. //通用textInput样式
  50. view: {
  51. flexDirection: 'row',
  52. height: 50,
  53. width: Dimensions.get('window').width * 0.8,
  54. },
  55. //通用textInput样式
  56. text: {
  57. lineHeight: 50,
  58. fontSize: 16,
  59. fontFamily: 'PingFang-SC-Regular',
  60. color: '#333333',
  61. },
  62. //通用textInput样式
  63. lineTopBottom: {
  64. borderBottomWidth: 3 / PixelRatio.get(),
  65. borderColor: 'rgb(208,208,208)',
  66. alignItems: 'center',
  67. },
  68. //提交按钮和清除按钮样式
  69. bottomStaus: {
  70. height: 50,
  71. flexDirection: 'row',
  72. },
  73. statusBtn: {
  74. flex: 1,
  75. flexDirection: 'row',
  76. justifyContent: 'center',
  77. alignItems: 'center',
  78. },
  79. statusLBtn: {
  80. backgroundColor: '#e6e8ea',
  81. },
  82. statusRBtn: {
  83. backgroundColor: '#1E90FF',
  84. },
  85. });
  86. export default public_css;