tomLadder / react-native-echarts-wrapper

📈Powerful React-Native ECharts Wrapper 📊
MIT License
176 stars 63 forks source link

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

Closed toumas closed 5 years ago

toumas commented 5 years ago

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 commented 5 years ago

Hey @toumas.

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

Thanks, Tom

tomLadder commented 5 years ago

just to be sure.

did you install react-native-webview?

toumas commented 5 years ago

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

tomLadder commented 5 years ago

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