在Android设备中未加载React native webview

时间:2018-04-23 14:25:19

标签: react-native d3.js webview

我正在尝试在webview中加载图表。它在Android和iOS模拟器中都有效。当我试图在Android设备中加载相同的时候,当usb连接到设备时它正在加载而没有任何错误,但是当电缆与设备断开连接时它会发出以下错误遇到错误加载页面。 错误是: -

  

{" canGoForward":假,"代码": - 6" canGoBack":假,"描述":&#34 ;净:ERR_CONNECTION_REFUSED""装载":假}

我正在尝试加载以下网址

const LoacalWebURL = require('./Graphs/polarblock.html');
const LoacalWebURL1 = require('./Localgraph/forced.html');
const LoacalWebURL2 = require('./Localgraph/bump_chart/index.html');

// The web view code where I am trying to load the above url:
 <WebView
     style = {styles.WebViewStyle}
     source={LoacalWebURL1}
     javaScriptEnabled={true}
     domStorageEnabled={true}
     startInLoadingState={true}
   />

  <WebView
     style = {styles.WebViewStyle}
     source={LoacalWebURL2}
     javaScriptEnabled={true}
     domStorageEnabled={true}
     startInLoadingState={true}
   />

0 个答案:

没有答案
相关问题