When using Animated.createAnimatedComponent(ScrollView)
to create an animated ScrollView
it\'s not longer possible to use scrollTo
.
If RN >= 0.59 (maybe earlier) and the following Ref setup:
const ScrollViewX = Animated.createAnimatedComponent(ScrollView);
_scrollView = React.createRef();
You can manually scroll an Animated component this way :
this._scrollView.current._component.scrollTo({x: number, y: number, animated: true|false})
(ScrollToOffset is deprecated and probably removed in 0.6)