react-native-navigation的迁移库

options-bottomTab.mdx 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. ---
  2. id: options-bottomTab
  3. title: Bottom Tab Options
  4. sidebar_label: Bottom Tab
  5. ---
  6. ```js
  7. const options = {
  8. bottomTab: {
  9. }
  10. }
  11. ```
  12. ## `badge`
  13. | Type | Required | Platform |
  14. | ------ | -------- | -------- |
  15. | string | No | Both |
  16. ## `badgeColor`
  17. | Type | Required | Platform |
  18. | ----- | -------- | -------- |
  19. | color | No | Both |
  20. ## `disableIconTint`
  21. | Type | Required | Platform |
  22. | ------- | -------- | -------- |
  23. | boolean | No | Both |
  24. ## `dotIndicator`
  25. | Type | Required | Platform |
  26. | ------------ | -------- | -------- |
  27. | DotIndicator | No | Both |
  28. ## `fontFamily`
  29. | Type | Required | Platform |
  30. | ------ | -------- | -------- |
  31. | string | No | Both |
  32. ## `fontSize`
  33. | Type | Required | Platform |
  34. | ------ | -------- | -------- |
  35. | number | No | Both |
  36. ## `icon`
  37. | Type | Required | Platform |
  38. | ------ | -------- | -------- |
  39. | number | No | Both |
  40. ## `iconColor`
  41. | Type | Required | Platform |
  42. | ----- | -------- | -------- |
  43. | color | No | Both |
  44. ## `selectedFontSize`
  45. | Type | Required | Platform |
  46. | ------ | -------- | -------- |
  47. | number | No | Both |
  48. ## `selectedIcon`
  49. | Type | Required | Platform |
  50. | ------ | -------- | -------- |
  51. | number | No | Both |
  52. ## `selectedIconColor`
  53. | Type | Required | Platform |
  54. | ----- | -------- | -------- |
  55. | color | No | Both |
  56. ## `iconInsets`
  57. | Type | Required | Platform |
  58. | ---------- | -------- | -------- |
  59. | IconInsets | No | Both |
  60. ## `disableSelectedIconTint`
  61. | Type | Required | Platform |
  62. | ------- | -------- | -------- |
  63. | boolean | No | Android |
  64. ## `disableIconTint`
  65. | Type | Required | Platform |
  66. | ------- | -------- | -------- |
  67. | boolean | No | Android |
  68. ## `selectedTextColor`
  69. | Type | Required | Platform |
  70. | ----- | -------- | -------- |
  71. | color | No | Both |
  72. ## `testID`
  73. | Type | Required | Platform |
  74. | ------ | -------- | -------- |
  75. | string | No | Both |
  76. ## `text`
  77. | Type | Required | Platform |
  78. | ------ | -------- | -------- |
  79. | string | No | Both |
  80. ## `textColor`
  81. | Type | Required | Platform |
  82. | ----- | -------- | -------- |
  83. | color | No | Both |
  84. ## DotIndicator
  85. ##### color?: color
  86. ##### size?: number
  87. ##### visible?: boolean
  88. ##### animate?: boolean
  89. ## IconInsets
  90. ##### top?: number
  91. ##### left?: number
  92. ##### right?: number
  93. ##### bottom?: number