Toggle (hide/show) TabBar on scrolling TabView scene contents #1235
Replies: 4 comments 4 replies
-
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
Beta Was this translation helpful? Give feedback.
-
Updated. |
Beta Was this translation helpful? Give feedback.
-
You should be able to pass a |
Beta Was this translation helpful? Give feedback.
-
@nirajniroula Hi I am trying to do the same in my app can you please show me your code to hide the tabbar. |
Beta Was this translation helpful? Give feedback.
-
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
react-native-tab-view@3.0.1
for the project I'm working on.I was trying to implement tab bar toggling on tab view scene contents scroll. Every thing went well except the space occupied by the bottom tab bar was always there. May be the GIFs below will help clarify the issue a little more.
WITH PATCHWORK
WITHOUT THE PATCH
Also, I had solved the same issue on
react-native-tab-view@2.11.0
by adding height (device's height) to TabView'ssceneContainerStyle
prop. Something like this:But this approach isn't working with 3.x.x any more.
Here is the diff that solved my problem on
react-native-tab-view@3.0.1
:I could have overlooked into the issue. Maybe it could have been resolved with out touching the files inside the modules. If so, any such suggestions will be greatly appreciated. Otherwise, for anyone stuck with this kind of issue, you can consider it as a work around.
Also, specifically to the author(s), please do have a look at it. We hope that this issue will soon be addressed. 👍
react-native@0.63.4
react-native-pager-view@^5.2.1
react-native-tab-view@3.0.1
This issue body was partially generated by patch-package.
Beta Was this translation helpful? Give feedback.
All reactions