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

styles.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { BoxModel, createStyleSheet } from '../../base/styles';
  2. /**
  3. * The style common to <tt>LoginDialog</tt> and <tt>WaitForOwnerDialog</tt>.
  4. */
  5. const dialog = {
  6. marginBottom: BoxModel.margin,
  7. marginTop: BoxModel.margin
  8. };
  9. /**
  10. * The style common to <tt>Text</tt> rendered by <tt>LoginDialog</tt> and
  11. * <tt>WaitForOwnerDialog</tt>.
  12. */
  13. const text = {
  14. };
  15. /**
  16. * The styles of the authentication feature.
  17. */
  18. export default createStyleSheet({
  19. /**
  20. * The style of <tt>LoginDialog</tt>.
  21. */
  22. loginDialog: {
  23. ...dialog,
  24. flex: 0,
  25. flexDirection: 'column'
  26. },
  27. /**
  28. * The style of <tt>Text</tt> rendered by <tt>LoginDialog</tt>.
  29. */
  30. loginDialogText: {
  31. ...text
  32. },
  33. /**
  34. * The style of <tt>TextInput</tt> rendered by <tt>LoginDialog</tt>.
  35. */
  36. loginDialogTextInput: {
  37. // XXX Matches react-native-prompt's dialogInput because base/dialog's
  38. // Dialog is implemented using react-native-prompt.
  39. fontSize: 18,
  40. height: 50
  41. },
  42. /**
  43. * The style of <tt>WaitForOwnerDialog</tt>.
  44. */
  45. waitForOwnerDialog: {
  46. ...dialog,
  47. ...text
  48. }
  49. });