我已经在我的React Native应用程序中集成了融合图。对于iOS,它可以正常工作,但是,在我试图显示图形的android系统中,它在UI中显示了html内容。
我已经从github页面正确地执行了安装步骤。
//标题声明
Host=
//渲染方法
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
}
/>
有人可以建议我,我在哪里做错了吗?
答案 0 :(得分:0)
由于某些文件问题,这种情况正在发生。固定