PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
827 stars 160 forks source link

Programmatically show header when `revealHeaderOnScroll={true}` #377

Open arjovanramshorst opened 8 months ago

arjovanramshorst commented 8 months ago

I'm not sure if I'm missing something from the documentation, but it appears that there is no way to programmatically 'uncollapse' the header when revealHeaderOnScroll={true}.

My use case is as follows: the collapsible tab screen is a one of the screens inside a bottom tab stack, whenever the user navigates to the collapsible screen, I want to show the entire header again. (I have a hook that runs whenever that happens, however I have no clue how to actually 'uncollapse' the header, without scrolling to the top.

Any help is greatly appreciated