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

关于webview的问题?WebView has been removed from React Native. #190

Open
Dyrixu opened this issue Aug 16, 2021 · 4 comments
Open

关于webview的问题?WebView has been removed from React Native. #190

Dyrixu opened this issue Aug 16, 2021 · 4 comments

Comments

@Dyrixu
Copy link

Dyrixu commented Aug 16, 2021

WebView has been removed from React Native.

@Dyrixu
Copy link
Author

Dyrixu commented Aug 16, 2021

WebView has been removed from React Native.

关于webview版本的问题,作者是否可以更新优化一下呢?

@congshengwu
Copy link

congshengwu commented Sep 23, 2021

这个库作者已经好久不维护了,应该是放弃了。

我这里有两个解决方案。

一个是换另一个库https://github.com/supervons/react-native-echarts-pro ,作者是基于这个库重构的。

继续使用这个库的话,可以修改node_modules目录下,native-echarts目录中的源码。把所有从"react-native"导入的"WebView"组件换成import WebView from 'react-native-webview';,从"react-native-webview"中导入。

@zhengyanGit
Copy link

RN新版0.57起,native-echarts里面的WebView可以添加useWebKit={true}属性来指定使用WKWebView

@KrushnaNaghate
Copy link

KrushnaNaghate commented Mar 3, 2023

dont use this package , depricated !!

use it npm i react-native-echarts-pro now

for the solution of this question
go through this path edit file
.\node_modules\native-echarts\src\components\Echarts\index.js

import { WebView, View, StyleSheet, Platform } from 'react-native';

to=>
import {View, StyleSheet, Platform } from 'react-native';
import {WebView} from 'react-native-webview';

issue solved

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

4 participants