custom component below SearchBar #964
Replies: 1 comment 3 replies
-
Not a core dev and I wouldn't exactly recommend it (it's a hack given the currently exposed functionality), but the only way I've gotten something similar to this to work in the past has been to use a SectionList with only one section in your screen component and to set it to sticky headers mode. Your single section's sticky header would looks something like the custom component in your example except that it would render just below the screen's header (top of the body) instead of at the bottom of the header. You might be able to set custom styling on the header (remove the shadow) and your component (match background color, set a bottom border) to fake this though. This was a while ago, but I remember it took some trial and error, though I sadly don't have the code I used handy any more. I would love it if |
Beta Was this translation helpful? Give feedback.
-
Is it Possible to have a custom component below the SearchBar from your library?
I cant use a custom header then I'd lose the large title and search bar.
An example would be the GitHub app, where they render a custom menu below their searchBar.
![Image from iOS (1)](https://user-images.githubusercontent.com/32917154/120601148-70697100-c3fe-11eb-9309-e58107d5b34a.gif)
Beta Was this translation helpful? Give feedback.
All reactions