react-native-navigation的迁移库

options-largeTitle.mdx 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. id: options-largeTitle
  3. title: Large Title Options
  4. sidebar_label: Large Title
  5. ---
  6. Controls the top bar large title on iOS, available on iOS 11 and above.
  7. ```js
  8. const options = {
  9. topBar: {
  10. largeTitle: {}
  11. }
  12. };
  13. ```
  14. ### `visible`
  15. Controls whether the large title is visible or not.
  16. | Type | Required | Platform |
  17. | ------- | -------- | -------- |
  18. | boolean | No | iOS |
  19. ### `fontSize`
  20. Set the title font size. On Android this value is in `sp`.
  21. | Type | Required | Platform |
  22. | ------ | -------- | -------- |
  23. | number | No | iOS |
  24. ### `color`
  25. Large title text color.
  26. | Type | Required | Platform |
  27. | ----- | -------- | -------- |
  28. | Color | No | iOS |
  29. ### `fontFamily`
  30. Set the large title [FontFamily](fonts.mdx).
  31. | Type | Required | Platform |
  32. | ---------- | -------- | -------- |
  33. | FontFamily | No | iOS |
  34. ### `fontWeight`
  35. Set the font weight for the large title.
  36. | Type | Required | Platform |
  37. | ------ | -------- | -------- |
  38. | number | No | iOS |