Large title doesn't snap like expected
Actual Behavior:

Expected Behavior (From iOS messages app):

How have you made the searchbar? :D
How have you made the searchbar? :D
I used this https://github.com/umhan35/react-native-search-bar
And used it as headerCenter?
And used it as headerCenter? Von meinem iPhone gesendet Am 05.06.2020 um 15:40 schrieb Akash Rajendra notifications@github.com:  How have you made the searchbar? :D I used this https://github.com/umhan35/react-native-search-bar — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#526 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADB4KAHWLSH3NV36QCG2RE3RVDYVBANCNFSM4NL46PGQ.
No, first child in ScrollView, and set the stickyHeaderIndices prop to 0
Header does snap when using translucent: true. You then can set backgroundColor to black and add paddingTop. But stickyHeader does not work then.
EDIT: Maybe it works for you. And maybe it has something to do with https://stackoverflow.com/questions/48039046/ios-11-large-title-navigation-bar-snaps-instead-of-smooth-transition
Got it working with translucent: true and stickyHeaderIndices={[0]} with contentInsetAdjustmentBehavior="automatic" on ScrollView. That ScrollView has to be the first component you render.
EDIT: StickyHeader does not work for me. Maybe we can team up implementing the antive searchbar in the header.
It would be great if you submitted a PR with native searchbar!
@WoLewicki check out my fork, this is all I could do, appreciate it if anyone would further work on this
Large title snaps only when it is translucent and it is expected behavior. About the sticky indices, there is already an issue #542. Can I close it then?
Yes!
Most helpful comment
@WoLewicki check out my fork, this is all I could do, appreciate it if anyone would further work on this