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

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