react-native-navigation的迁移库

sideMenu-layout.mdx 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ---
  2. id: sideMenu-layout
  3. title: Side Menu
  4. sidebar_label: Side Menu
  5. ---
  6. This layout allows implementing sidemenus, which can be opened by swiping from one side towards the other side.
  7. ```js
  8. {
  9. left: {
  10. component: {}
  11. },
  12. center: {
  13. stack: {
  14. options: {},
  15. children: [{
  16. component: {}
  17. }]
  18. }
  19. },
  20. right: {
  21. component: {}
  22. }
  23. }
  24. ```
  25. ## `center`
  26. | Type | Required | Description |
  27. | ---------------- | -------- | ------------------------------------------------ |
  28. | [Layout](Layout.mdx) | Yes | Center component, contains the main application. |
  29. ## `left`
  30. | Type | Required | Description |
  31. | ---------------- | -------- | ---------------------------------- |
  32. | [Layout](Layout.mdx) | No | Contains the left component layout. |
  33. ## `right`
  34. | Type | Required | Description |
  35. | ---------------- | -------- | ----------------------------------- |
  36. | [Layout](Layout.mdx) | No | Contains the right component layout. |