[ReactNative][SyncDiff] Hook in the Dialog.onDismiss to JS
This commit is contained in:
parent
58661978a7
commit
3c4adeb2e7
|
@ -33,6 +33,7 @@ class Modal extends React.Component {
|
|||
<RCTModalHostView
|
||||
animated={this.props.animated}
|
||||
transparent={this.props.transparent}
|
||||
onDismiss={this.props.onDismiss}
|
||||
style={styles.modal}>
|
||||
<View style={[styles.container, containerBackgroundColor]}>
|
||||
{this.props.children}
|
||||
|
@ -45,6 +46,7 @@ class Modal extends React.Component {
|
|||
Modal.propTypes = {
|
||||
animated: PropTypes.bool,
|
||||
transparent: PropTypes.bool,
|
||||
onDismiss: PropTypes.func,
|
||||
};
|
||||
|
||||
var styles = StyleSheet.create({
|
||||
|
|
Loading…
Reference in New Issue