'Is there a way to somehow control the scroll position of scrollable components (e.g. ScrollView) declaratively?

i.e. by using a variable: state, Animated value, Reanimated value, whatever...

We can use imperative scrolling (like scrollToOffset etc.), but what about a declarative one? I mean how can we control the offset by dragging some other view using a pan responder for example?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source