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 has been removed from react-native core #16

Open
HariMohan-eng opened this issue Nov 15, 2019 · 1 comment
Open

WebView has been removed from react-native core #16

HariMohan-eng opened this issue Nov 15, 2019 · 1 comment

Comments

@HariMohan-eng
Copy link

HariMohan-eng commented Nov 15, 2019

Hi @aloneszjl
Thanks for connect with me.
Previously We used "react-native": "^0.59.6". Due to some limitations in older version we have upgraded to "react-native": "0.61.4" (on which we facing the same error which i have mentioned earlier- Web view has been removed from react native)

How we can remove this error, Please let me know ASAP.

@Rananjaya
Copy link

Hi @aloneszjl

First install install npm install --save react-native-webview

after that go to Node_modules/react-native-f2chart/src and Open index.js.
and import like this
import { WebView } from 'react-native-webview';
and remove webview as RNWebview from import
after add webView: WebView to defaultProps

export default class Chart extends PureComponent {
static defaultProps = {
onChange: () => {},
initScript: "",
data: [],
webView: WebView
};

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