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:
Dave Miller 2016-04-20 00:58:46 -07:00 коммит произвёл Facebook Github Bot 9
Родитель 6731de7b45
Коммит eb21b25e2d
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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 = {