react-native-navigation的迁移库

options-bottomTabs.mdx 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ---
  2. id: bottomTabs-options
  3. title: Bottom Tabs Options
  4. sidebar_label: Bottom Tabs
  5. ---
  6. ```js
  7. const options = {
  8. bottomTabs: {
  9. }
  10. }
  11. ```
  12. ## `animate`
  13. Controls whether toggling visibility states will be animated.
  14. | Type | Required | Platform |
  15. | ------- | -------- | -------- |
  16. | boolean | No | Both |
  17. ## `backgroundColor`
  18. Change the background color.
  19. | Type | Required | Platform |
  20. | ----- | -------- | -------- |
  21. | color | No | Both |
  22. ## `barStyle`
  23. Controls whether the BottomTabs use dark (black) or light (default) visual style. Requires `translucent: true`.
  24. | Type | Required | Platform |
  25. | ----------------------- | -------- | -------- |
  26. | enum('default','black') | No | Both |
  27. ## `currentTabId`
  28. Select a tab by the id (componentId) of a child contained in it. See [Selecting tabs programmatically](#selectingtabsprogrammatically) for a detailed explanation.
  29. | Type | Required | Platform |
  30. | ------ | -------- | -------- |
  31. | number | No | Both |
  32. ## `currentTabIndex`
  33. | Type | Required | Platform |
  34. | ------ | -------- | -------- |
  35. | number | No | Both |
  36. ## `drawBehind`
  37. | Type | Required | Platform |
  38. | ------- | -------- | -------- |
  39. | boolean | No | Both |
  40. ## `elevation`
  41. | Type | Required | Platform |
  42. | ------ | -------- | -------- |
  43. | number | No | Android |
  44. ## `hideShadow`
  45. | Type | Required | Platform |
  46. | ------- | -------- | -------- |
  47. | boolean | No | iOS |
  48. ## `preferLargeIcons`
  49. | Type | Required | Platform |
  50. | ------- | -------- | -------- |
  51. | boolean | No | Android |
  52. ## `tabsAttachMode`
  53. | Type | Required | Platform |
  54. | -------------------------------------------------- | -------- | -------- |
  55. | enum('together','afterInitialTab','onSwitchToTab') | No | Both |
  56. ## `testID`
  57. | Type | Required | Platform |
  58. | ------ | -------- | -------- |
  59. | string | No | Both |
  60. ## `titleDisplayMode`
  61. | Type | Required | Android |
  62. | ------------------------------------------------ | -------- | ------- |
  63. | enum('alwaysShow','showWhenActive','alwaysHide') | No | Both |
  64. ## `translucent`
  65. | Type | Required | Platform |
  66. | ------- | -------- | -------- |
  67. | boolean | No | iOS |
  68. ## `visible`
  69. | Type | Required | Platform |
  70. | ------- | -------- | -------- |
  71. | boolean | No | Both |