Closed NotTooReact89 closed 4 years ago
I've gotten this too but in my functional components using the useRef hook.
My workaround was adding the animation to the conditional before I call it:
if (myRef && myRef.current && myRef.current.slideOutUp) {
myRef.current?.slideOutUp();
}
Which removes my linter complaining. My guess is you could add the same check to your class component, ie:
if (this.banner.slideOutUp){
this.banner.slideOutUp(animationDuration).then(this.props.onPress;
}
Hi there,
I am using react-native-animatable with typescript but I get an error. Please find the attached image.