LennertBlommaert / BUDA_MUNT

1 stars 0 forks source link

Use native driver for search bar collapsing #21

Open LennertBlommaert opened 6 years ago

LennertBlommaert commented 6 years ago

Searchbar does on Explore page get collapsed on scroll by animating the height, as this very quickly generates the target animation. This is done without using the native driver, as layout props are not supported by it. This generally causes slower animations.

Further documentation: https://facebook.github.io/react-native/blog/2017/02/14/using-native-driver-for-animated.html https://github.com/janicduplessis/collapsible-navbar

LennertBlommaert commented 6 years ago

Or look into LayoutAnimations: https://facebook.github.io/react-native/docs/animations.html#layoutanimation-api