Browse Source

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 years ago
parent
commit
e7913d067b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      docs/screen-api.md

+ 2
- 1
docs/screen-api.md View File

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