Below is a demo screen of what I want to implement.
So, what I want to do is that when I swipe up on the green area, I want the yellow area to move up along with it, and also the below blue box area (which is FlatList
in my case).
When the yellow area is finally hidden, I want the green area to stick at the top of the screen and the user can scroll in the below blue box area.
How can I do it with PanResponder
and Animated
API? As far as I know, it can be done using Interpolation but I'm not able to get the logic in this case.