From a8feb39a279ba0d56dfff1267223d2af32aaf100 Mon Sep 17 00:00:00 2001 From: lee_jjoon Date: Fri, 14 Feb 2020 13:02:31 +0900 Subject: [PATCH] change renamed rn life-cyle function - componentWillReceiveProps => UNSAFE_componentWillReceiveProps - See https://fb.me/react-async-component-lifecycle-hooks for details. --- datepicker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datepicker.js b/datepicker.js index ac6cacde29..55f26b35e8 100644 --- a/datepicker.js +++ b/datepicker.js @@ -50,7 +50,7 @@ class DatePicker extends Component { this.setModalVisible = this.setModalVisible.bind(this); } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.date !== this.props.date) { this.setState({date: this.getDate(nextProps.date)}); } @@ -363,7 +363,7 @@ class DatePicker extends Component { {this.getTitleElement()} - : + : } {this._renderIcon()} @@ -423,7 +423,7 @@ class DatePicker extends Component { testID={confirmBtnTestID} > {confirmBtnText}