diff --git a/viewpager/IndicatorViewPager.js b/viewpager/IndicatorViewPager.js index ad300fb4..453b1747 100644 --- a/viewpager/IndicatorViewPager.js +++ b/viewpager/IndicatorViewPager.js @@ -48,7 +48,7 @@ export default class IndicatorViewPager extends Component { else this._stopAutoPlay() } - componentWillUpdate (nextProps, nextState) { + UNSAFE_componentWillUpdate (nextProps, nextState) { this._childrenCount = React.Children.count(nextProps.children) if (this.props.autoPlayEnable !== nextProps.autoPlayEnable) { nextProps.autoPlayEnable ? this._startAutoPlay() : this._stopAutoPlay()