react-native-reanimated-bottom-sheet icon indicating copy to clipboard operation
react-native-reanimated-bottom-sheet copied to clipboard

Correct way to move scrollview back to initial position?

Open pdugan20 opened this issue 5 years ago • 2 comments

If I'm loading in new data to the bottom sheet, how to I make sure that the position of the container, after having been scrolled, resets to its initial position?

animation5

pdugan20 avatar Jun 02 '20 23:06 pdugan20

Hi @pdugan20! I'm curious, did you ever end up finding a solution for this? I'm encountering a similar need as this and curious if you found an approach that works. Thanks much!

DigitalZebra avatar May 11 '21 18:05 DigitalZebra

I ended up going with a fixed height sheet and didn't need to solve for this, but I'd guess there's a way to get a ref to the ScrollView and use scrollTo or scrollToOffset?

pdugan20 avatar May 11 '21 18:05 pdugan20