From eb16f769b04bfd77a3e276aa72f807c737c4766c Mon Sep 17 00:00:00 2001 From: Hetali-Goavega <85684397+Hetali-Goavega@users.noreply.github.com> Date: Tue, 28 Sep 2021 18:28:49 +0530 Subject: [PATCH] Add webview from react-native-webview Remove webview from react native and add from react-native-webview. --- react-native-highcharts.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/react-native-highcharts.js b/react-native-highcharts.js index 6a57b9f..1924bbd 100644 --- a/react-native-highcharts.js +++ b/react-native-highcharts.js @@ -1,13 +1,10 @@ -import React, { Component, PropTypes, } from 'react'; +import React, { Component } from 'react'; import { - AppRegistry, StyleSheet, - Text, View, - WebView, - Image, Dimensions } from 'react-native'; +import {WebView} from 'react-native-webview'; const win = Dimensions.get('window'); class ChartWeb extends Component { @@ -79,7 +76,7 @@ class ChartWeb extends Component { return ( this.reRenderWebView(e)} style={styles.full} source={{ html: concatHTML, baseUrl: 'web/' }} javaScriptEnabled={true}