您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

styles.js 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import { StyleSheet } from 'react-native';
  2. import { BoxModel, ColorPalette, createStyleSheet } from '../../styles';
  3. /**
  4. * The React {@code Component} styles of {@code Dialog}.
  5. */
  6. export const dialog = createStyleSheet({
  7. /**
  8. * The style of the {@code Text} in a {@code Dialog} button.
  9. */
  10. buttonText: {
  11. color: ColorPalette.blue
  12. },
  13. /**
  14. * Unified container for a consistent Dialog style.
  15. */
  16. dialogContainer: {
  17. paddingHorizontal: BoxModel.padding,
  18. paddingVertical: 1.5 * BoxModel.padding
  19. },
  20. /**
  21. * The style of the {@code Text} in a {@code Dialog} button which is
  22. * disabled.
  23. */
  24. disabledButtonText: {
  25. color: ColorPalette.darkGrey
  26. }
  27. });
  28. /**
  29. * The React {@code Component} styles of {@code BottomSheet}. These have
  30. * been implemented as per the Material Design guidelines:
  31. * {@link https://material.io/guidelines/components/bottom-sheets.html}.
  32. */
  33. export const bottomSheetStyles = createStyleSheet({
  34. /**
  35. * Style for a backdrop which dims the view in the background. This view
  36. * will also be clickable. The backgroundColor is applied to the overlay
  37. * view instead, so the modal animation doesn't affect the backdrop.
  38. */
  39. backdrop: {
  40. ...StyleSheet.absoluteFillObject
  41. },
  42. /**
  43. * Style for the container of the sheet.
  44. */
  45. container: {
  46. alignItems: 'flex-end',
  47. flex: 1,
  48. flexDirection: 'row',
  49. justifyContent: 'center'
  50. },
  51. /**
  52. * Style for an overlay on top of which the sheet will be displayed.
  53. */
  54. overlay: {
  55. ...StyleSheet.absoluteFillObject,
  56. backgroundColor: 'rgba(0, 0, 0, 0.8)'
  57. },
  58. /**
  59. * Bottom sheet's base style.
  60. */
  61. sheet: {
  62. flex: 1,
  63. backgroundColor: ColorPalette.white,
  64. paddingHorizontal: 16,
  65. paddingVertical: 8
  66. }
  67. });