瀏覽代碼

tapBackgroundToDismiss property on screen API (#3012)

This is working on the screen API too, however it's not included in screen API, only on top-level screen
Patryk Poźniak 6 年之前
父節點
當前提交
e7913d067b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      docs/screen-api.md

+ 2
- 1
docs/screen-api.md 查看文件

@@ -114,7 +114,8 @@ this.props.navigator.showLightBox({
114 114
  passProps: {}, // simple serializable object that will pass as props to the lightbox (optional)
115 115
  style: {
116 116
    backgroundBlur: "dark", // 'dark' / 'light' / 'xlight' / 'none' - the type of blur on the background
117
-   backgroundColor: "#ff000080" // tint color for the background, you can specify alpha here (optional)
117
+   backgroundColor: "#ff000080", // tint color for the background, you can specify alpha here (optional)
118
+   tapBackgroundToDismiss: true // dismisses LightBox on background taps (optional)
118 119
  },
119 120
  adjustSoftInput: "resize", // android only, adjust soft input, modes: 'nothing', 'pan', 'resize', 'unspecified' (optional, default 'unspecified')
120 121
 });