react-native-navigation的迁移库

layout-BottomTabs.mdx 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ---
  2. id: layout-bottomTabs
  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. {
  18. stack: {
  19. id: 'PROFILE_TAB',
  20. children: [
  21. {
  22. component: {
  23. id: 'PROFILE_SCREEN',
  24. name: 'ProfileScreen'
  25. }
  26. }
  27. ]
  28. }
  29. }
  30. ]
  31. }
  32. ```
  33. ## `id`
  34. | Type | Required | Description |
  35. | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  36. | 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. |
  37. ## `children`
  38. | Type | Required | Description |
  39. | ------------------ | -------- | ----------------------------- |
  40. | [Layout[]](layout-layout.mdx) | YES | Child layouts of any kind. |
  41. ## `options`
  42. | Type | Required | Description |
  43. | ----------------------- | -------- | ------------------------------------------------------------- |
  44. | [Options](options-root.mdx) | No | dynamic options which will apply to all screens in bottomTabs |