react-native-wagmi-charts 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/README.md +30 -1
- package/example/.DS_Store +0 -0
- package/example/package.json +11 -13
- package/example/src/App.tsx +39 -34
- package/example/src/LineChart.tsx +2 -1
- package/example/yarn.lock +1819 -8871
- package/lib/commonjs/charts/candle/HoverTrap/index.web.js +120 -0
- package/lib/commonjs/charts/candle/HoverTrap/index.web.js.map +1 -0
- package/lib/commonjs/charts/line/ChartPath.js +8 -3
- package/lib/commonjs/charts/line/ChartPath.js.map +1 -1
- package/lib/commonjs/charts/line/HoverTrap/index.js +15 -0
- package/lib/commonjs/charts/line/HoverTrap/index.js.map +1 -0
- package/lib/commonjs/charts/line/HoverTrap/index.web.js +120 -0
- package/lib/commonjs/charts/line/HoverTrap/index.web.js.map +1 -0
- package/lib/commonjs/charts/line/index.js +4 -1
- package/lib/commonjs/charts/line/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedText.js +3 -5
- package/lib/commonjs/components/AnimatedText.js.map +1 -1
- package/lib/module/charts/candle/HoverTrap/index.web.js +101 -0
- package/lib/module/charts/candle/HoverTrap/index.web.js.map +1 -0
- package/lib/module/charts/line/ChartPath.js +8 -3
- package/lib/module/charts/line/ChartPath.js.map +1 -1
- package/lib/module/charts/line/HoverTrap/index.js +3 -0
- package/lib/module/charts/line/HoverTrap/index.js.map +1 -0
- package/lib/module/charts/line/HoverTrap/index.web.js +101 -0
- package/lib/module/charts/line/HoverTrap/index.web.js.map +1 -0
- package/lib/module/charts/line/index.js +3 -1
- package/lib/module/charts/line/index.js.map +1 -1
- package/lib/module/components/AnimatedText.js +2 -5
- package/lib/module/components/AnimatedText.js.map +1 -1
- package/lib/typescript/src/charts/candle/HoverTrap/index.web.d.ts +2 -0
- package/lib/typescript/src/charts/line/ChartPath.d.ts +3 -3
- package/lib/typescript/src/charts/line/HoverTrap/index.d.ts +2 -0
- package/lib/typescript/src/charts/line/HoverTrap/index.web.d.ts +2 -0
- package/lib/typescript/src/charts/line/index.d.ts +2 -0
- package/package.json +5 -5
- package/src/charts/candle/HoverTrap/index.web.tsx +110 -0
- package/src/charts/line/ChartPath.tsx +19 -14
- package/src/charts/line/HoverTrap/index.tsx +3 -0
- package/src/charts/line/HoverTrap/index.web.tsx +110 -0
- package/src/charts/line/index.ts +2 -0
- package/src/components/AnimatedText.tsx +2 -5
- package/tsconfig.json +1 -1
- package/yarn.lock +1840 -796
- package/example/patches/react-native-reanimated+2.2.2.patch +0 -28
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/react-native-reanimated/lib/reanimated2/js-reanimated/index.web.js b/node_modules/react-native-reanimated/lib/reanimated2/js-reanimated/index.web.js
|
|
2
|
-
index 76e1dc0..46aa7bf 100644
|
|
3
|
-
--- a/node_modules/react-native-reanimated/lib/reanimated2/js-reanimated/index.web.js
|
|
4
|
-
+++ b/node_modules/react-native-reanimated/lib/reanimated2/js-reanimated/index.web.js
|
|
5
|
-
@@ -11,7 +11,22 @@ export const _updatePropsJS = (_viewTag, _viewName, updates, viewRef) => {
|
|
6
|
-
acc[index][key] = value;
|
|
7
|
-
return acc;
|
|
8
|
-
}, [{}, {}]);
|
|
9
|
-
- viewRef.current._component.setNativeProps({ style: rawStyles });
|
|
10
|
-
+ if (typeof viewRef.current._component.setNativeProps === 'function') {
|
|
11
|
-
+ viewRef.current._component.setNativeProps({ style: rawStyles });
|
|
12
|
-
+ } else if (Object.keys(viewRef.current._component.props).length > 0) {
|
|
13
|
-
+ Object.keys(viewRef.current._component.props).forEach((key) => {
|
|
14
|
-
+ if (!rawStyles[key]) {
|
|
15
|
-
+ return;
|
|
16
|
-
+ }
|
|
17
|
-
+ const dashedKey = key.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase());
|
|
18
|
-
+ viewRef.current._component._touchableNode.setAttribute(
|
|
19
|
-
+ dashedKey,
|
|
20
|
-
+ rawStyles[key]
|
|
21
|
-
+ );
|
|
22
|
-
+ });
|
|
23
|
-
+ } else {
|
|
24
|
-
+ console.warn('It is not possible to manipulate component');
|
|
25
|
-
+ }
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
global._setGlobalConsole = (_val) => {
|