Skip to content

Commit d1bca9f

Browse files
committed
feat: export echarts
1 parent 96cfc0a commit d1bca9f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wuba/react-native-echarts",
3-
"version": "1.3.0",
3+
"version": "1.3.0-all.0",
44
"description": "Echarts for react native.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
@@ -65,7 +65,6 @@
6565
"@types/react-test-renderer": "^18.0.7",
6666
"commitlint": "^17.0.2",
6767
"del-cli": "^5.0.0",
68-
"echarts": "^5.5.0",
6968
"eslint": "^8.4.1",
7069
"eslint-config-prettier": "^8.5.0",
7170
"eslint-plugin-prettier": "^4.0.0",
@@ -81,17 +80,14 @@
8180
"react-test-renderer": "^18.2.0",
8281
"release-it": "^15.0.0",
8382
"sharp": "^0.33.2",
84-
"typescript": "^5.0.4",
85-
"zrender": "^5.5.0"
83+
"typescript": "^5.0.4"
8684
},
8785
"peerDependencies": {
8886
"@shopify/react-native-skia": "*",
89-
"echarts": "*",
9087
"react": "*",
9188
"react-native": "*",
9289
"react-native-gesture-handler": "*",
93-
"react-native-svg": "*",
94-
"zrender": "*"
90+
"react-native-svg": "*"
9591
},
9692
"engines": {
9793
"node": ">= 14.0.0"
@@ -165,6 +161,8 @@
165161
},
166162
"dependencies": {
167163
"@xmldom/xmldom": "^0.8.6",
168-
"entities": "^4.4.0"
164+
"echarts": "^5.5.0",
165+
"entities": "^4.4.0",
166+
"zrender": "^5.5.0"
169167
}
170168
}

src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import * as _echarts from 'echarts/index';
12
export { default as SkiaChart } from './skiaChart';
23
export { default as SvgChart } from './svgChart';
34
export { SVGRenderer } from './SVGRenderer';
45
export * from './types';
6+
export const echarts = _echarts;

0 commit comments

Comments
 (0)