From 7c2fe03de772214ba69ea384fb4af3f59c255f79 Mon Sep 17 00:00:00 2001 From: jayhuang Date: Fri, 3 Jan 2025 17:22:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3b2c51c..71b7225 100644 --- a/package.json +++ b/package.json @@ -37,10 +37,12 @@ } ], "dependencies": { - "@webank/webankapp_react-native-svg": "^5.5.5", "lodash": "^4.12.0", "paths-js": "^0.4.5" }, + "peerDependencies": { + "@webank/webankapp_react-native-svg": "^5.5.5" + }, "devDependencies": { "babel-jest": "*", "babel-preset-react-native": "^1.9.0", -- Gitee From 1bd97c608b250c6c10d54c65e0bf819b6414079e Mon Sep 17 00:00:00 2001 From: jayhuang Date: Fri, 3 Jan 2025 18:15:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 71b7225..305091f 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "paths-js": "^0.4.5" }, "peerDependencies": { - "@webank/webankapp_react-native-svg": "^5.5.5" + "react-native-svg": "^5.5.5" }, "devDependencies": { "babel-jest": "*", -- Gitee From 04f10b68359724ea3cf8db8438eab556d139ee0f Mon Sep 17 00:00:00 2001 From: jayhuang Date: Fri, 3 Jan 2025 18:32:11 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/stockline/StockLineChartDynamicLineRendering.js | 2 +- src/Axis.js | 2 +- src/Bar.js | 2 +- src/GridAxis.js | 2 +- src/Line.js | 2 +- src/Pie.js | 4 ++-- src/Radar.js | 2 +- src/Scatterplot.js | 2 +- src/Tree.js | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/example/src/stockline/StockLineChartDynamicLineRendering.js b/example/src/stockline/StockLineChartDynamicLineRendering.js index eb7f85f..1175116 100644 --- a/example/src/stockline/StockLineChartDynamicLineRendering.js +++ b/example/src/stockline/StockLineChartDynamicLineRendering.js @@ -20,7 +20,7 @@ SPDX-License-Identifier: Apache-2.0 import React, { Component } from 'react'; import { View, StyleSheet } from 'react-native'; -import { Text, Circle } from '@webank/webankapp_react-native-svg'; +import { Text, Circle } from 'react-native-svg'; import { StockLine } from 'react-native-pathjs-charts'; diff --git a/src/Axis.js b/src/Axis.js index dff2001..0ad8028 100644 --- a/src/Axis.js +++ b/src/Axis.js @@ -17,7 +17,7 @@ SPDX-License-Identifier: Apache-2.0 */ import React, {Component} from 'react' -import { Circle, G, Path, Text, Line } from '@webank/webankapp_react-native-svg' +import { Circle, G, Path, Text, Line } from 'react-native-svg' import { fontAdapt } from './util' import _ from 'lodash' const Pathjs = require('paths-js/path') diff --git a/src/Bar.js b/src/Bar.js index 05e233a..bd71c0a 100644 --- a/src/Bar.js +++ b/src/Bar.js @@ -18,7 +18,7 @@ SPDX-License-Identifier: Apache-2.0 import React,{Component} from 'react' import {Text as ReactText} from 'react-native' -import Svg,{ G, Path, Text } from '@webank/webankapp_react-native-svg' +import Svg,{ G, Path, Text } from 'react-native-svg' import { Colors, Options, fontAdapt, cyclic, color, identity } from './util' import _ from 'lodash' import Axis from './Axis' diff --git a/src/GridAxis.js b/src/GridAxis.js index 473100d..343f2f4 100644 --- a/src/GridAxis.js +++ b/src/GridAxis.js @@ -17,7 +17,7 @@ SPDX-License-Identifier: Apache-2.0 */ import React, { Component } from 'react' -import { G, Path } from '@webank/webankapp_react-native-svg' +import { G, Path } from 'react-native-svg' import _ from 'lodash' import { AxisStruct } from './Axis' diff --git a/src/Line.js b/src/Line.js index 15f8823..1feb4a6 100755 --- a/src/Line.js +++ b/src/Line.js @@ -18,7 +18,7 @@ SPDX-License-Identifier: Apache-2.0 import React, { Component } from 'react'; import { Text as ReactText, View, PanResponder } from 'react-native'; -import Svg, { G, Path, Rect, Text, Circle, Line } from '@webank/webankapp_react-native-svg'; +import Svg, { G, Path, Rect, Text, Circle, Line } from 'react-native-svg'; import { Colors, Options, cyclic, fontAdapt } from './util'; import Axis from './Axis'; import GridAxis from './GridAxis'; diff --git a/src/Pie.js b/src/Pie.js index 6c04cbb..0cd5e87 100755 --- a/src/Pie.js +++ b/src/Pie.js @@ -13,10 +13,10 @@ SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0 */ -import extractProps from '@webank/webankapp_react-native-svg/lib/extract/extractProps'; +import extractProps from 'react-native-svg/lib/extract/extractProps'; import React, {Component} from 'react' import {Text as ReactText, Animated} from 'react-native' -import Svg,{ G, Path, Text, Circle} from '@webank/webankapp_react-native-svg' +import Svg,{ G, Path, Text, Circle} from 'react-native-svg' import { Colors, Options, cyclic, identity, fontAdapt } from './util' import _ from 'lodash' const Pie = require('paths-js/pie') diff --git a/src/Radar.js b/src/Radar.js index 782b99b..c3b6358 100755 --- a/src/Radar.js +++ b/src/Radar.js @@ -18,7 +18,7 @@ SPDX-License-Identifier: Apache-2.0 import React, {Component} from 'react' import {Text as ReactText} from 'react-native' -import Svg,{ G, Path, Line, Text} from '@webank/webankapp_react-native-svg' +import Svg,{ G, Path, Line, Text} from 'react-native-svg' import { Options, identity, styleSvg, fontAdapt } from './util' const Radar = require('paths-js/radar') diff --git a/src/Scatterplot.js b/src/Scatterplot.js index 4609fb4..febae51 100755 --- a/src/Scatterplot.js +++ b/src/Scatterplot.js @@ -18,7 +18,7 @@ SPDX-License-Identifier: Apache-2.0 import React, {Component} from 'react' import {Text as ReactText} from 'react-native' -import Svg,{ Circle, G } from '@webank/webankapp_react-native-svg' +import Svg,{ Circle, G } from 'react-native-svg' import { Options, styleSvg } from './util' import Axis from './Axis' import GridAxis from './GridAxis' diff --git a/src/Tree.js b/src/Tree.js index 8994485..e0d7c31 100755 --- a/src/Tree.js +++ b/src/Tree.js @@ -18,7 +18,7 @@ SPDX-License-Identifier: Apache-2.0 import React, {Component} from 'react' import {Text as ReactText} from 'react-native' -import Svg,{ Circle, G, Path, Text } from '@webank/webankapp_react-native-svg' +import Svg,{ Circle, G, Path, Text } from 'react-native-svg' import { Options, styleSvg, fontAdapt } from './util' import _ from 'lodash' const Tree = require('paths-js/tree') -- Gitee