Remove listener

Reviewed By: hedgerwang

Differential Revision: D4440698

fbshipit-source-id: 24a4a42aa6ca4c5f62df3ab9c1f3f37ea632f153
This commit is contained in:
Fred Liu 2017-01-19 22:16:19 -08:00 committed by Facebook Github Bot
parent fa21822241
commit 8f5a72de8e
1 changed files with 1 additions and 0 deletions

View File

@ -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();