EXPO-升级到sdk 33后,WebView无法正确呈现(fusioncharts html)

问题描述 投票:0回答:1

SDK版本:33

平台(Android / iOS / web / all):Android

我的应用程序使用Fusioncharts库显示图表。在sdk 32上一切正常,图表使用html文件作为基础加载并显示在webview上。

Asset

enter image description here

Webview

enter image description here

SDK 32(工作)

Sdk 32enter image description here

升级到SDK 33后(不起作用,显示html内容)

Sdk 33enter image description here

有人知道发生了什么吗?世博会资产变了吗? Webview?

问候,

react-native webview sdk expo fusioncharts
1个回答
0
投票

尝试将传递给WebView的source方法的值更改为{html: this.props.libraryPath}

结论,它应该看起来像这样:

<WebView
    // ... other methods

    source={{ html: this.props.libraryPath }}

    // ... other methods
/>

希望有帮助!

© www.soinside.com 2019 - 2024. All rights reserved.