The expected native behavior of scrollable components is to respond to events from navigation that will scroll to top when tapping on the active tab as you would expect from native tab bars.
In order to achieve it we export
useScrollToTop which accept ref to scrollable component (e,g.
Using with class component
You can wrap your class component in a function component to use the hook:
Providing scroll offset
If you require offset to scroll position you can wrap and decorate passed reference: