-
Notifications
You must be signed in to change notification settings - Fork 55
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
Invariant Violation error on android emulator -- RCTImageView #28
Comments
Haven't experienced that, so far. Can you share your development stack?
|
thanks for getting back to me, i'm using the latest stuff, this control is working fine: https://github.com/instea/react-native-color-picker but I like this one , with a full wheel more , and would like to get it working. after some research, it looks like its an issue with the system not finding some of the thanks. |
after more digging I have found that it appears the issue has to do with the "radius" variable that gets set to "{state}" , at the top of render(), . The radius is getting set to undefined... |
Thanks for your work so far. In Yeti we have not yet updated to React Native 0.58.x in order to avoid breaking changes and issues (like this apparently). If we do soon, I'll come back to this issue. Thank you for sharing your issues and troubleshooting so far. |
it doesn't get set to This is a legit bug, the issue is that the initial state doesn't have a radius, so it is undefined the first pass of render. radius doesn't get added to state until the View's I haven't looked at the code history to see if something changed in react-native-color-wheel that broke this, or it's something in latest react native. But a quick fix would be for you to not set it to some arbitrary number in render but instead just add should be a quick fix. If no one has resolved it by the weekend I'll look into it. |
thanks for getting back to me on this, for the past days I have been able to work around it by hard coding the variable in the render routine, not ideal. |
Same error iOS |
Just merged a fix proposal. Please those users of the master version tell me if it works so I push it again to npm |
I've confirmed that 8cf9b24 fixes the invariant violation issue. Though the examples directory ColorWheel.js is out of sync with the root dev directory. |
@jsdario p.s. thanks for the package! |
Hi Guys, I'm running into the same bug. I'm using the latest version of everything.
I've copied the code sample from this github repo. which is the following: Please advice. |
Has anyone else seen this issue, when trying to run the examples:
thanks ,
The text was updated successfully, but these errors were encountered: