react-native-navigation的迁移库

options-sideMenu.mdx 928B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. id: sideMenu-options
  3. title: Side Menu Options
  4. sidebar_label: Side Menu
  5. ---
  6. ```js
  7. const options = {
  8. sideMenu: {
  9. left: {},
  10. right: {},
  11. openGestureMode: "entireScreen"
  12. }
  13. };
  14. ```
  15. ### `left`
  16. Configure the left side menu.
  17. | Type | Required | Platform |
  18. | ------------------------------------ | -------- | -------- |
  19. | [SideMenuSide](options-sideMenuSide.mdx) | No | Both |
  20. ### `right`
  21. Configure the right side menu.
  22. | Type | Required | Platform |
  23. | ------------------------------------ | -------- | -------- |
  24. | [SideMenuSide](options-sideMenuSide.mdx) | No | Both |
  25. ### `openGestureMode`
  26. Configure how a user is allowed to open a drawer using gestures.
  27. | Type | Required | Platform |
  28. | ----------------------------- | -------- | -------- |
  29. | enum('entireScreen', 'bezel') | No | iOS |