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
Can't press top tab in jest test: material-top-tabs "TypeError: Cannot read properties of undefined (reading 'Commands')" #10419
Comments
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. |
Having same issue with |
same issue. |
Having the same issue with |
Having the same issue with react-native @react-navigation/bottom-tabs@^6.5.2 |
please did you get the solution to this problem? |
did you find the solution to this |
Any solutions on this ? The only solution I've found (for bottom-bar) is to create a custom tab and add |
I did not find a solution. I built my own top-level tabs using buttons to get around this. Not great but at least testable. |
Current behavior
I have the following code:
and I run the following test:
I get the following error:
Expected behavior
The test passes.
To recreate just run the test in the top-tab-only folder of the repro.
yarn test
Reproduction
https://github.com/Stewartarmbrecht/material-top-tabs-error-repro
Platform
Packages
Environment
@react-navigation/drawer
@react-navigation/material-bottom-tabs
@react-navigation/stack]
I've removed the packages that I don't use.
The repo has a docker file as well to recreate the exact environment if needed.
The text was updated successfully, but these errors were encountered: