mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Remove listener
Reviewed By: hedgerwang Differential Revision: D4440698 fbshipit-source-id: 24a4a42aa6ca4c5f62df3ab9c1f3f37ea632f153
This commit is contained in:
committed by
Facebook Github Bot
parent
fa21822241
commit
8f5a72de8e
@@ -83,6 +83,7 @@ class Circle extends React.Component {
|
||||
y: gestureState.dy + this.props.restLayout.y,
|
||||
});
|
||||
this.props.onDeactivate();
|
||||
this.state.pan.removeAllListeners();
|
||||
},
|
||||
})}, () => {
|
||||
this.props.onActivate();
|
||||
|
||||
Reference in New Issue
Block a user