diff --git a/src/index.js b/src/index.js index 58366be..80a72f3 100644 --- a/src/index.js +++ b/src/index.js @@ -167,14 +167,14 @@ export default class Swipeable extends PureComponent { rightButtonsOpen: false }; - componentDidMount() { + UNSAFE_componentDidMount() { const {onPanAnimatedValueRef, onRef} = this.props; onRef(this); onPanAnimatedValueRef(this.state.pan); } - componentWillUnmount() { + UNSAFE_componentWillUnmount() { this._unmounted = true; }