bamlab/react-native-image-header-scroll-view

ScrollToTop

Closed this issue · 1 comments

how do I create a button with the "scrollToTop ()" type function?

Just pass ref to the HeaderImageScrollView

and on button click -

scrollViewRef.current.scrollTo({ y: 0, animated: true });