1. 找到 node_modules ative-echartssrccomponentsEcharts pl.html 文件 ,把它复制到 (androidappsrcmainassets) 目录下
tpl.html 加上
<meta name="viewport" content="width=device-width, initial-scale=1">
2. 修改 node_modules ative-echartssrccomponentsEchartsindex.js
source={require('./tpl.html')} 修改为: source={Platform.OS==='ios' ? require('./tpl.html'):{uri:'file:///android_asset/tpl.html'}}
import { WebView, View, StyleSheet } from 'react-native'; 修改为: import { WebView, View, StyleSheet, Platform } from 'react-native';