소스 검색

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