ソースを参照

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
 });