Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

styles.js 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import {
  2. ColorPalette,
  3. createStyleSheet
  4. } from '../../../base/styles';
  5. export const ANDROID_UNDERLINE_COLOR = 'transparent';
  6. const TEXT_SIZE = 17;
  7. /**
  8. * The styles of the native components of the feature
  9. * {@code app-settings}.
  10. */
  11. export default createStyleSheet({
  12. /**
  13. * Standardized style for a field container {@code View}.
  14. */
  15. fieldContainer: {
  16. alignItems: 'center',
  17. flexDirection: 'row',
  18. minHeight: 65,
  19. paddingHorizontal: 8
  20. },
  21. /**
  22. * Standard container for a {@code View} containing a field label.
  23. */
  24. fieldLabelContainer: {
  25. alignItems: 'center',
  26. flexDirection: 'row',
  27. marginRight: 5
  28. },
  29. /**
  30. * Text of the field labels on the form.
  31. */
  32. fieldLabelText: {
  33. fontSize: TEXT_SIZE
  34. },
  35. /**
  36. * Field container style for all but last row {@code View}.
  37. */
  38. fieldSeparator: {
  39. borderBottomWidth: 1,
  40. borderColor: 'rgba(0, 0, 0, 0.1)'
  41. },
  42. /**
  43. * Style for the {@code View} containing each
  44. * field values (the actual field).
  45. */
  46. fieldValueContainer: {
  47. alignItems: 'center',
  48. flex: 1,
  49. flexDirection: 'row',
  50. justifyContent: 'flex-end'
  51. },
  52. /**
  53. * Style fo the form section separator titles.
  54. */
  55. formSectionTitle: {
  56. backgroundColor: 'rgba(0, 0, 0, 0.1)',
  57. marginTop: 5,
  58. padding: 5
  59. },
  60. /**
  61. * Global {@code Text} color for the components.
  62. */
  63. text: {
  64. color: ColorPalette.black
  65. },
  66. /**
  67. * Standard text input field style.
  68. */
  69. textInputField: {
  70. flex: 1,
  71. fontSize: TEXT_SIZE,
  72. textAlign: 'right'
  73. }
  74. });