Closed vcebotari closed 6 years ago
if (Animated.ScrollView !== props.scrollableComponent) { this.ScrollableComponent = Animated.createAnimatedComponent( props.scrollableComponent, ); }
in your render func you have .... on return, but it's defined only in a conditional function what is in contructor, it must be at least like this:
this.ScrollableComponent = Animated.createAnimatedComponent( Animated.ScrollView, ); if (Animated.ScrollView !== props.scrollableComponent) { this.ScrollableComponent = Animated.createAnimatedComponent( props.scrollableComponent, ); }
or change default props key from 'scrollableComponent' to 'ScrollableComponent
Hi, @440459012, thanks for the issue. You right, I forgot about it. Already fixed in v1.5.3
cool, thanks
in your render func you have.... on return, but it's defined only in a conditional function what is in contructor, it must be at least like this:
or change default props key from 'scrollableComponent' to 'ScrollableComponent