-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
TypeError: Cannot read property 'brandPrimary' of undefined #1578
Comments
+1 |
@max-konin Share complete snippet for test case |
To solve this issue, just replace this :
by this :
in files This is due to the fact that you cannot access an object property while declaring it. So, in my solution, i am using a computed property, which will be evaluated at runtime. I can do a PR if you want. |
@thomaswinckell thx, it works for me. @SupriyaKalghatgi Do you need snippet for test case now? |
@SupriyaKalghatgi why is it closed? it still occur with master branch of NativeBase |
@max-konin Fixed on branch |
Still seeing the issue at line 196 using
Jest basic test still failing. |
@SupriyaKalghatgi nice. thx |
@SupriyaKalghatgi I clicked on your link but it doesn't go anywhere? Not sure what's going on there. I saw you had updated the Master branch and updated the version to 2.3.9 however I was still seeing the issue / no change in that version. Perhaps I'm using an old version? |
@liltimtim try to use native-base from master branch. 2.3.9 still has the error |
@liltimtim The link i shared above was about comment pointing in this issue itself, which said,
This issue has been fixed on |
…omment) so rollbacked to previous version
When can we expect the next release? |
I'm in a bit of problematic situation, because native-base 2.3.6-2.3.9 has this issue, while 2.3.5 does not. However, 2.3.5 has #1359 for me. I can't use the package from GitHub for some reason (e.g. I tried using
|
@panuhorsmalahti In a day or two |
react-native, react and native-base version
Expected behaviour
The Jest test suite is expected to run & tests pass
Actual behaviour
Steps to reproduce (code snippet or screenshot)
The text was updated successfully, but these errors were encountered: