[ReactNative][SyncDiff] Hook in the Dialog.onDismiss to JS

This commit is contained in:
Aaron Chiu 2015-09-04 10:50:30 -01:00
parent 58661978a7
commit 3c4adeb2e7
1 changed files with 2 additions and 0 deletions

View File

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