mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-12 15:58:04 +08:00
[ReactNative][SyncDiff] Hook in the Dialog.onDismiss to JS
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user