-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Material top tab navigator does not work with react-native 0.59 #5684
Comments
I get an error that says: "Error while updating property 'colors' of a view managed by: BVLinearGradient". This happens whether I swiped or clicked on a tab. |
It's also worth to mention that issue occurs only on android. Verified on Pixel 2XL emulator and Samsung Galaxy S7. |
Same issue on Nokia 7.1 and Samsung Galaxy S10+ I've also noticed that replacing the tab bar with a different component also breaks it so if using a custom tab bar you break it globally on Android and iOS. My guess would be that something doesn't work right with index (selectedIndex in custom) or navigation (onTabPress in custom) |
I found where the issue is. |
You can use 2.0.0-alpha if you want: https://github.com/react-navigation/react-navigation-tabs/releases/tag/v2.0.0-alpha.0 We'll update to this soon but you can also just install it in your project and use it now. |
Thanks, I had to find it out myself so this could be useful for others:
|
another option is to use the yarn |
to clarify, i'm not including this in react-navigation yet for two reasons:
|
Understandable! I can confirm at least that using the alpha version fixes this issue. So it's just a matter of upgrading to the new dependency |
@kantorm I had a similar problem, can you check if my workaround resolves your issue too? |
@FibreFoX yes it solves the issue. |
@kantorm in that case you just might want to update your dependencies (for me all it needed was a cleaned lockfile), as that bug got removed with 1.3.5 of that lib ( |
as @FibreFoX says above, if you clear your lockfile or just uninstall/reinstall react-navigation then you will get an updated version of react-native-tab-view that resolves this issue! |
Current Behavior
I set up clean project with latest react-native release (0.59) and created simple material top tab navigator. When the app runs touch events on tabs does not work and the only way to move between tabs is swiping
package.json
App.js
Expected Behavior
Taping on a tab should navigate to given tab.
The text was updated successfully, but these errors were encountered: