react-native-gifted-charts 1.4.9 → 1.4.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-gifted-charts",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "description": "The most complete library for Bar, Line, Area, Pie, Donut, Stacked Bar and Population Pyramid charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.",
5
5
  "main": "src/index.tsx",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  "registry": "https://registry.npmjs.org/"
25
25
  },
26
26
  "dependencies": {
27
- "gifted-charts-core": "^0.1.3"
27
+ "gifted-charts-core": "^0.1.4"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.22.5",
@@ -52,6 +52,7 @@ const BarAndLineChartsWrapper = (props: BarAndLineChartsWrapperTypes) => {
52
52
 
53
53
  onEndReached,
54
54
  onStartReached,
55
+ onMomentumScrollEnd,
55
56
  } = props;
56
57
 
57
58
  const {
@@ -77,7 +78,7 @@ const BarAndLineChartsWrapper = (props: BarAndLineChartsWrapperTypes) => {
77
78
  verticalLinesProps,
78
79
  lineInBarChartProps,
79
80
  lineInBarChartProps2,
80
- } = useBarAndLineChartsWrapper({...props, isRTL:I18nManager.isRTL});
81
+ } = useBarAndLineChartsWrapper({...props, isRTL: I18nManager.isRTL});
81
82
 
82
83
  useEffect(() => {
83
84
  if (pointerConfig && getPointerProps) {
@@ -124,6 +125,9 @@ const BarAndLineChartsWrapper = (props: BarAndLineChartsWrapperTypes) => {
124
125
  setCanMomentum(true);
125
126
  }}
126
127
  onMomentumScrollEnd={({nativeEvent}) => {
128
+ if (onMomentumScrollEnd) {
129
+ onMomentumScrollEnd();
130
+ }
127
131
  if (isCloseToEnd(nativeEvent) && canMomentum) {
128
132
  onEndReached ? onEndReached() : null;
129
133
  setCanMomentum(false);