Closed zoranmarjanovic closed 6 years ago
Hi @zoranmarjanovic! Which component do you use for navigation? https://github.com/react-navigation/react-navigation or https://github.com/happypancake/react-native-tab-navigator
Sorry for less informations.
Yes, I use the first one https://github.com/react-navigation/react-navigation
@zoranmarjanovic looks like TabNaivagator doesn't support render header in the different place(outside the TabNaivagator view). But you can emulate it, try to create CustomTabView and use it with StackNaivagator, so the CustomTabView will be in the ParallaxScrollHeader and StackNaivagator will be as ParallaxScroll child component. Does it make sense?
Yes, I figured out that. Your approach totally make sense, but I have tried with limited height and disabling / enabling scroll on ParallexView and ScrollView inside the TabNavigator and seems to be working, thanks anyway for quick response
You are welcome :)
@zoranmarjanovic can u please show an example code how you achieved this. I am struggling with this. Please help
I would like to have TabNaivagator inisde ParallaxScroll and have when user scrolling up have sticky header which is TabNaivagator header. Any help?