I’m searching for a while for handling an animated header, facebook/twitter like, with a scrollview/flatlist etc
like
The main problem is that the best solution hide the refreshComponent down the header (absolute header with content container style on the flatlist). An other solution (that works ok in ios) ask to transform the view parent of the flatlist while you scroll. But on android this is pretty staggering, becouse you are scrolling and moving the flatlist on the same time.
An other more intelligent solution is to use nested scrollview.
something:
You can only scroll one scrollview at the time, so you have to enable/disable the scroll.
With some research i found a solution, but this is pretty buggy (you need to doubletouch the screen for making work the scroll. I think because of setState that is async)
I searched how to control the refresh component, without lucky! The medium article was totally different from the implementation! (used height, instead of transform, and I needed transform)
edit: In fact, without this 2 properties ( contentInset for IOS and progressViewOffset for Android), will be impossibile to see the refresh animation!