I'm trying to implement scrollToTop when clicking on the tab bar icon. The hook works great with ScrollView and FlatList, the documentation also states that it works with SectionList, but this does not happens. I'm trying using ref like: useScrollToTop(ref.current.getNode());, also tried use like useScrollToTop(ref). <ScrollBottomSheet componentType="SectionList" -> this is my config for ScrollBottomSheet.
does scrolling works with this library at all?
also tried to reproduce the ref.current.getNode (). scrollTo ({y: 0, animated: true}) method described in the library documentation, not working for me
I'm trying to implement scrollToTop when clicking on the tab bar icon. The hook works great with ScrollView and FlatList, the documentation also states that it works with SectionList, but this does not happens. I'm trying using ref like:
useScrollToTop(ref.current.getNode());
, also tried use likeuseScrollToTop(ref)
.<ScrollBottomSheet componentType="SectionList"
-> this is my config for ScrollBottomSheet.does scrolling works with this library at all?
also tried to reproduce the
ref.current.getNode (). scrollTo ({y: 0, animated: true})
method described in the library documentation, not working for melink to react navigation hook: https://reactnavigation.org/docs/use-scroll-to-top/