PedroBern / react-native-collapsible-tab-view

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

Scroll on header #352

Open erstefan opened 11 months ago

erstefan commented 11 months ago

👋, thank you for the great effort on this project.

I'm interested in getting the Scroll on header example and touchable elements work together. Currently, the scroll on header works great for static headers but would like to get it working with any type of content.

Is that easily achievable? If not, any tips would be highly appreciated.

kartikk221 commented 11 months ago

Hello, I was able to achieve this by putting pointerEvents="none" on the top most view of the header. Note! If you have any kind of touchables or switches, they will break by doing this. The only hacky way I found around having the touchables/switches work is by placing the touchables/switches in their own top most view which has a position absolute and is essentially floating in where it would have been originally in relative positioning.