netguru / sticky-parallax-header

A simple React Native library, enabling the creation of fully customized header for your iOS and Android apps.
https://netguru.github.io/sticky-parallax-header/
MIT License
1.86k stars 190 forks source link

Disable horizontal swiping #184

Closed vendeza closed 2 years ago

vendeza commented 3 years ago

Disabling horizontal swiping Feature request

Hello, I like sticky-parallax-header. It's awesome. Add disabling of the horizontal swiping effect, please. Because I don't want to use it without tabs.

I looked at your ScrollableTabView component. I think to need to add boolean param the "horizontal" to StickyPrallaxHeader -> ScrollableTabView.

Thanks.

featurerequest

jawang94 commented 3 years ago

Also looking for something similar which is to disable horizontal bouncing when on a start or end tab.

Vn-ChemGio commented 3 years ago

I have a solution for it: as @vendeza tell, I have been opened ScrollAbleTabView in my node_modules and remove props 'horizontal' Problem will be resolved

mateusz1913 commented 2 years ago

Check out v1.0.x release candidate version which for TabbedHeaderPager (new TabbedHeader) provides pagerProps prop where you can override props such as horizontal, which will disable left/right swipe

yarn add react-native-sticky-parallax-header@rc