Remove listener
Reviewed By: hedgerwang Differential Revision: D4440698 fbshipit-source-id: 24a4a42aa6ca4c5f62df3ab9c1f3f37ea632f153
This commit is contained in:
parent
fa21822241
commit
8f5a72de8e
|
@ -83,6 +83,7 @@ class Circle extends React.Component {
|
||||||
y: gestureState.dy + this.props.restLayout.y,
|
y: gestureState.dy + this.props.restLayout.y,
|
||||||
});
|
});
|
||||||
this.props.onDeactivate();
|
this.props.onDeactivate();
|
||||||
|
this.state.pan.removeAllListeners();
|
||||||
},
|
},
|
||||||
})}, () => {
|
})}, () => {
|
||||||
this.props.onActivate();
|
this.props.onActivate();
|
||||||
|
|
Loading…
Reference in New Issue