diff --git a/datepicker.js b/datepicker.js index ac6cacde29..9823e28256 100644 --- a/datepicker.js +++ b/datepicker.js @@ -50,7 +50,7 @@ class DatePicker extends Component { this.setModalVisible = this.setModalVisible.bind(this); } - componentWillReceiveProps(nextProps) { + componentDidUpdate(nextProps) { if (nextProps.date !== this.props.date) { this.setState({date: this.getDate(nextProps.date)}); } @@ -66,7 +66,8 @@ class DatePicker extends Component { this.state.animatedHeight, { toValue: height, - duration: duration + duration: duration, + useNativeDriver: false } ).start(); } else { @@ -74,7 +75,8 @@ class DatePicker extends Component { this.state.animatedHeight, { toValue: 0, - duration: duration + duration: duration, + useNativeDriver: false } ).start(() => { this.setState({modalVisible: visible});