diff --git a/index.js b/index.js index 80dfca9..10c68f6 100644 --- a/index.js +++ b/index.js @@ -19,6 +19,11 @@ class Modal extends Component { offset: new Animated.Value(0) }; } + componentWillMount() { + if (this.props.open) { + this.open(); + } + } componentWillReceiveProps(props) { if (props.open && props.children !== this.state.children) { this.setState({children: props.children});