diff --git a/package.json b/package.json index 3e6619c7..c7dfd63c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wuba/react-native-echarts", - "version": "2.0.1", + "version": "2.0.2", "description": "Echarts for react native.", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/svg/svgChart.tsx b/src/svg/svgChart.tsx index c878644a..d9690dc6 100644 --- a/src/svg/svgChart.tsx +++ b/src/svg/svgChart.tsx @@ -149,6 +149,14 @@ function SvgEle(props: SVGVEleProps) { const key = parts[0]?.trim(); let value = parts[1]?.trim(); if (key) { + // echart里默认字体sans-serif,ios无法识别 + if ( + Platform.OS === 'ios' && + key === 'font-family' && + value === 'sans-serif' + ) { + value = 'Helvetica Neue'; + } attrs[toCamelCase(key)] = value; } });