【问题标题】:For Android fusion chart showing html content in React Native用于在 React Native 中显示 html 内容的 Android 融合图表
【发布时间】:2019-07-20 03:22:48
【问题描述】:

我已将融合图表集成到我在 React Native 中的应用程序中。对于 iOS,它工作正常,但是,在 android 中,当我尝试显示图形时,它在 UI 中显示 html 内容。

我已从 github 页面正确执行安装步骤。

//头声明

const fusionChartiOSPath = require('../assets/fusioncharts.html');

const fusionChartAndroidPath = { uri: 'file:///android_asset/fusioncharts.html' };

//渲染方法

      <FusionCharts
        type={type}
        width={width}
        height={height}
        dataFormat={dataFormat}
        dataSource={dataSource}
        containerBackgroundColor={containerBackgroundColor}
        libraryPath={
          Platform.OS === 'ios'
            ? fusionChartiOSPath
            : fusionChartAndroidPath
       }
      />

但是,在 UI 中它的显示就像

<!DOCTYPE html>
<html>
....

谁能建议我,我在哪里做错了?

【问题讨论】:

    标签: android react-native graph fusioncharts


    【解决方案1】:

    这是由于某些文件问题而发生的。固定

    【讨论】:

    • 我面临着类似的问题。你能分享一下这个问题是如何解决的吗?
    猜你喜欢
    • 2019-07-14
    • 1970-01-01
    • 2019-09-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-31
    • 2011-12-13
    相关资源
    最近更新 更多