Merge pull request #155 from danilowoz/native-remove-listener

fix(native): remove listener on unmont
This commit is contained in:
Danilo Woznica
2019-10-08 13:30:06 +01:00
committed by GitHub

View File

@@ -67,6 +67,12 @@ class NativeSvg extends Component<RequiredIContentLoaderProps, State> {
}
}
componentWillUnmount = () => {
if (this.props.animate) {
this.animatedValue.removeAllListeners()
}
}
render() {
const {
children,