diff --git a/index.js b/index.js index 9897fa2..39ad39f 100644 --- a/index.js +++ b/index.js @@ -165,7 +165,7 @@ class TagInput extends React.PureComponent, State> { } } - componentWillReceiveProps(nextProps: Props) { + UNSAFE_componentWillReceiveProps(nextProps: Props) { const inputWidth = TagInput.inputWidth( nextProps.text, this.spaceLeft, @@ -184,7 +184,7 @@ class TagInput extends React.PureComponent, State> { } } - componentWillUpdate(nextProps: Props, nextState: State) { + UNSAFE_componentWillUpdate(nextProps: Props, nextState: State) { if ( this.props.onHeightChange && nextState.wrapperHeight !== this.state.wrapperHeight @@ -382,7 +382,7 @@ class Tag extends React.PureComponent { }; curPos: ?number = null; - componentWillReceiveProps(nextProps: TagProps) { + UNSAFE_componentWillReceiveProps(nextProps: TagProps) { if ( !this.props.isLastTag && nextProps.isLastTag &&