Article describing the code: https://medium.com/@bogoslavskiy/implementation-complex-animation-in-react-native-by-example-search-bar-with-tab-view-and-collapsing-68bb43be2dcb
https://expo.io/@bogoslavskiy/search-bar-animation
You can try in Expo Snack https://snack.expo.io/ryR7zDW7X
Implementing smooth animation by using native driver.
Tested on real devices
yarn install
or
npm install
You can open project in Expo XDE or run
exp start