react-native-navigation的迁移库

layout-BottomTabs.mdx 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. id: bottomTabs-layout
  3. title: Bottom Tabs
  4. sidebar_label: Bottom Tabs
  5. ---
  6. A container view for managing a radio-style selection interface, where a selection determines which child view controller to display.
  7. ```js
  8. {
  9. id: 'BOTTOM_TABS_LAYOUT',
  10. children: [
  11. {
  12. component: {
  13. id: 'HOME_SCREEN'
  14. name: 'HomeScreen'
  15. }
  16. },
  17. stack: {
  18. id: 'PROFILE_TAB',
  19. children: [
  20. {
  21. component: {
  22. id: 'PROFILE_SCREEN',
  23. name: 'ProfileScreen'
  24. }
  25. }
  26. ]
  27. }
  28. ]
  29. }
  30. ```
  31. ## `id`
  32. | Type | Required | Description |
  33. | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  34. | string | No | Unique id used to interact with the view via the Navigation api, usually `Navigation.mergeOptions` which accepts the componentId as it's first argument. |
  35. ## `children`
  36. | Type | Required | Description |
  37. | ------------------ | -------- | ----------------------------- |
  38. | [Layout[]](Layout.mdx) | YES | Child layouts of any kind. |
  39. ## `options`
  40. | Type | Required | Description |
  41. | ----------------------- | -------- | ------------------------------------------------------------- |
  42. | [Options](options-root.mdx) | No | dynamic options which will apply to all screens in bottomTabs |