Skip to content

Commit

Permalink
Replace componentWillMount with componentDidMount
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Sheenkova committed Jun 9, 2020
1 parent 7b0b635 commit 69419f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export default class Swipeable extends PureComponent {
rightButtonsOpen: false
};

componentWillMount() {
componentDidMount() {
const {onPanAnimatedValueRef, onRef} = this.props;

onRef(this);
Expand Down

0 comments on commit 69419f3

Please sign in to comment.