-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
react-native: 0.39.2
When I pop the page with a PullToRefresh, It shows the error: 'Cannot read property 'removeListener' of undefined', like this:
code in TimedAnination.js, line 96:
componentWillUnmount() {
if(this.triggerBindID) {
this.state.scrollY.removeListener(this.triggerBindID);
}
}
should I modify the code link this, and what should I do next?:
componentWillUnmount() {
if(this.triggerBindID) {
this.state.scrollY && this.state.scrollY.removeListener(this.triggerBindID);
}
}
ustasb
Metadata
Metadata
Assignees
Labels
No labels
