react-native-navigation的迁移库

api-sideMenu.mdx 545B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. id: sideMenu-api
  3. title: Side Menu
  4. sidebar_label: Side Menu
  5. ---
  6. This layout allows to implement 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: Layout`
  26. Center component, contains the main application.
  27. ## `left?: Layout`
  28. Contain the left component layout.
  29. ## `right?: Layout`
  30. Contain the right component layout.