-
-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v6 hiding tabbar with {display:none} does not work on iOS #1366
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Description and Steps To Reproduce sections. |
@tarikpnr you're not doing this correctly. You're trying to directly manipulating I am doing it in an animated way: tabBarStyle: {
transform: [
{
translateY: transitionAnim,
},
],
}, You could do it like so: tabBarStyle: {
display: 'none'
}, The key is to use tabBarStyle. But be careful: using All in all, there is no issue with |
Well, it was just an example. I do know that there is a prop for tabBarStyle in screenOptions, it corresponds to same thing when you use custom bottom tab bar. by giving your customTabBar component to However, I can say that it is resolved with using |
@tarikpnr oh ok, I could only make assumptions based on your ticket. Maybe it is related though, but I was able to use it with enableScreens (but I am also using the native-stack, not sure if you're doing it as well). But anyway, you'll need workarounds when hiding the tabBar because it won't free the occupied space without position absolute |
@hirbod Yes, I use native-stack as well. Some says that it might also be related to react-native version. In expo snack you wont see this error. I really would like to have a prop for |
exactly, a prop more like |
any updates on this? I am having this issue |
I am having this issue too. How to fix it? |
Having the same issue. Any fix ? |
I'm also having the same issue, Any fix? |
I had fixed this issue previously on react native 0.70.1 by setting My suspicion is that enableScreens(false) isn't working correctly, because when I went to a specific route and replaced the native-screens with the default stack navigator, I didn't see the bug with tabbar happen. |
I recently change react-native and react-navigation version. My package versions are I tried every solution that answers propose My solution are
In BottomTabView.tsx on @react-navigation/bottom-tabs/src/views
100 ms is enough to make bottom height disappear. |
Any update on this? enableScreens(false) not working on new react native versions(0.73.6). |
any updates on this ? |
Current behavior
(I am opening this issue here because it is said that this issue might be related to this library
I have already opened the issue in the react-navigation repo)
I am trying to achieve dynamically hiding tab bar behavior. I already know what documentation suggest for this purpose.
However, I am not a big fan of restructuring whole navigators and routes for only hiding tab bar. Thus, I did prefer a more dynamic way. But, I am facing a problem with IOS simulator/real device. It works fine on android devices.
What I do is basically, (just a summary of the logic I do app
And this is what happens on ios simulator/real-device. Video link
Seems like
display:none
doesn't affect anyway to height of bottom tab bar. I am wondering while it works on android emulator/real-device what's wrong with IOS?Expected behavior
Hide bottom tab bar with the applied styling
Reproduction
https://snack.expo.dev/@tarikfp/hide-bottom-bar-fails-on-ios
hide-tabbar.mov
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: