Skip to content

Commit 6b7ed12

Browse files
committed
Replace deprecated lifecycle hooks to UNSAFE ones
1 parent 381ecc3 commit 6b7ed12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ export default class Swipeable extends PureComponent {
167167
rightButtonsOpen: false
168168
};
169169

170-
componentDidMount() {
170+
UNSAFE_componentDidMount() {
171171
const {onPanAnimatedValueRef, onRef} = this.props;
172172

173173
onRef(this);
174174
onPanAnimatedValueRef(this.state.pan);
175175
}
176176

177-
componentWillUnmount() {
177+
UNSAFE_componentWillUnmount() {
178178
this._unmounted = true;
179179
}
180180

0 commit comments

Comments
 (0)