-
Notifications
You must be signed in to change notification settings - Fork 171
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 'style' of undefined #196
Comments
Any update on this? |
Sorry, I could not find time for this yet |
Sorry, I could not find time for this yet |
having the same issue :( |
having this issue too! |
react-native seems to have removed propTypes from most of their components, in favor of flow/typescript. react-native-web already has removed them (breaking react-native-canvas for web). Maybe it's an idea to also remove propTypes here. At some point react-native might also remove these propTypes. |
So after removing the propTypes it still didn't work, but the solution is actually quite simple. With react-native-web there is no reason to use react-native-webview (it isn't even supported), and also no reason to use react-native-canvas. Just using a plain
The object passed to It might be a good idea to document that |
This is related to #184, in this issue |
I am trying use the library to render a basic canvas with a shape as per example code in the git repo. However, i am getting library errors and cant seem to resolve it.
I've added the example code to a boiler plate expo project with the minimal typescript setup with no additional code (just the boiler plate project).
I am getting the following error ...
![image](https://user-images.githubusercontent.com/20630271/97300943-d6a77780-18a2-11eb-8abc-ae35d91090f4.png)
The only custom code that is added is the example code which is added to the TabOneScreen.
![image](https://user-images.githubusercontent.com/20630271/97301563-a3b1b380-18a3-11eb-8173-054410dd1852.png)
The text was updated successfully, but these errors were encountered: