Fix Popover.android to bubble events correctly
Reviewed By: andreicoman11, fkgozali Differential Revision: D3197104 fb-gh-sync-id: 882f85175f87200b7aef1ca4204d6dfb6c4c4c69 fbshipit-source-id: 882f85175f87200b7aef1ca4204d6dfb6c4c4c69
This commit is contained in:
Родитель
6731de7b45
Коммит
eb21b25e2d
|
@ -49,13 +49,20 @@ class Modal extends React.Component {
|
|||
transparent={this.props.transparent}
|
||||
onRequestClose={this.props.onRequestClose}
|
||||
onShow={this.props.onShow}
|
||||
style={styles.modal}>
|
||||
style={styles.modal}
|
||||
onStartShouldSetResponder={this._shouldSetResponder}
|
||||
>
|
||||
<View style={[styles.container, containerBackgroundColor]}>
|
||||
{this.props.children}
|
||||
</View>
|
||||
</RCTModalHostView>
|
||||
);
|
||||
}
|
||||
|
||||
// We don't want any responder events bubbling out of the modal.
|
||||
_shouldSetResponder(): boolean {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Modal.propTypes = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче