浏览代码

Document sideMenu.openGestureMode

This property can be used to control how the SideMenu is opened using swipe gesture

bezel - only swipes from the side of the screen open the side menu
entireScreen - Swipe from any area of the screen will open the SideMenu
Guy Carmeli 6 年前
父节点
当前提交
3eed7ab164
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      docs/docs/styling.md

+ 1
- 0
docs/docs/styling.md 查看文件

@@ -190,6 +190,7 @@ Navigation.mergeOptions(this.props.componentId, {
190 190
     },
191 191
   },
192 192
   sideMenu: {
193
+    openGestureMode: 'entireScreen' | 'bezel'
193 194
     left: {
194 195
       shouldStretchDrawer: false, // defaults to true, when false sideMenu contents not stretched when opened past the width
195 196
       animationVelocity: 2500, // defaults to 840, high number is a faster sideMenu open/close animation