Skip to content

Commit

Permalink
chore(release): publish 2.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: tony chen <[email protected]>
  • Loading branch information
zhiqingchen committed Nov 30, 2024
1 parent be010dc commit 0bf8a0d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions src/svg/svgChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit 0bf8a0d

Please sign in to comment.