diff --git a/src/Row.js b/src/Row.js index 32718a8..543f659 100644 --- a/src/Row.js +++ b/src/Row.js @@ -142,10 +142,10 @@ export default class Row extends Component { }, }); - componentWillReceiveProps(nextProps) { - if (!this._active && !shallowEqual(this._location, nextProps.location)) { - const animated = !this._active && nextProps.animated; - this._relocate(nextProps.location, animated); + componentDidUpdate(prevProps) { + if (!this._active && !shallowEqual(this._location, this.props.location)) { + const animated = !this._active && this.props.animated; + this._relocate(this.props.location, animated); } }