Skip to content
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down