4

I've a layout having a Header (React navigation) which is transparent and a ScrollView which contains a banner and other items. What I want to achieve is:

FIRST) To animate the header color on scroll i.e. Transparency decreases. Also note that I need to animate the StatusBar color along.

SECONDLY) To interchange the items in Header using their opacities i.e. one item hides and other one shows up. Plus, I want to hide another item in the banner (in ScrollView)

I'm attaching some images for expected result. Hope it will help understand my requirement easily.

enter image description here enter image description here enter image description here enter image description here

a) There is a logo in header. b) When scroll starts, at specific point, logo disappears and search bar starts appearing in header and disappearing from banner, also header & statusbar colors alpha starts increasing. c) Animation completed. d) End result.

I've almost succeeded with the help of this tutorial.

enter image description here .

But its not working with Android statusbar. Also it doesn't have interchanging items in header. And it is not using React navigation header but custom header.

1
  • hi i am facing same issue with statusbar.. Commented Sep 29, 2020 at 19:15

0

Your Answer

Draft saved
Draft discarded

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.