You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.js 1.7KB

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