diff --git a/App/index.js b/App/index.js old mode 100644 new mode 100755 index 6a57b9f..0e42be2 --- a/App/index.js +++ b/App/index.js @@ -4,11 +4,12 @@ import { StyleSheet, Text, View, - WebView, Image, Dimensions } from 'react-native'; +import { WebView } from 'react-native-webview'; + const win = Dimensions.get('window'); class ChartWeb extends Component { constructor(props){ @@ -60,7 +61,7 @@ class ChartWeb extends Component { } // used to resize on orientation of display - reRenderWebView(e) { + reRenderWebView = (e) => { this.setState({ height: e.nativeEvent.layout.height, width: e.nativeEvent.layout.width, @@ -75,7 +76,7 @@ class ChartWeb extends Component { config = JSON.parse(config) let concatHTML = `${this.state.init}${flattenObject(config)}${this.state.end}`; - + return ( { this.setState({ height: e.nativeEvent.layout.height, width: e.nativeEvent.layout.width, @@ -75,7 +76,7 @@ class ChartWeb extends Component { config = JSON.parse(config) let concatHTML = `${this.state.init}${flattenObject(config)}${this.state.end}`; - + return (