Skip to content
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

Broken on React Native >= 0.60.0 (Invariant Violation: Element type is invalid) #27

Closed
toumas opened this issue Aug 5, 2019 · 4 comments

Comments

@toumas
Copy link

toumas commented Aug 5, 2019

WebView was finally removed from react-native in v0.60 thus this package no longer works with the newer versions of react-native.

Here's the issue reproduced.

The error:

Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `ECharts`.

This error is located at:
    in RCTView (at View.js:35)
    in View (at src/index.js:158)
    in ECharts (at App.js:25)
    in RCTView (at View.js:35)
    in View (at App.js:24)
    in App (at renderApplication.js:40)
    in RCTView (at View.js:35)
    in View (at AppContainer.js:98)
    in RCTView (at View.js:35)
    in View (at AppContainer.js:115)
    in AppContainer (at renderApplication.js:39)
@tomLadder
Copy link
Owner

Hey @toumas.

Thank you for reporting this issue. I'm currently rewriting some internals. The upcoming release will fix this problem.

Thanks,
Tom

@tomLadder
Copy link
Owner

just to be sure.

did you install react-native-webview?

@toumas
Copy link
Author

toumas commented Aug 6, 2019

In the application I'm developing it is included in dependencies. In the repro it is not but the issue is the same.

@tomLadder
Copy link
Owner

Just released v1.4.3 🎉.
This release adds support for RN 0.60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants