react-native-gifted-charts 1.2.13 → 1.2.14

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.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "The most complete library for Bar, Line, Area, Pie, Donut and Stacked Bar charts in React Native. Allows 2D, 3D, gradient, animations and live data updates.",
5
5
  "main": "src/index.tsx",
6
6
  "files": [
@@ -413,6 +413,7 @@ export const LineChart = (props: propTypes) => {
413
413
  return item;
414
414
  });
415
415
  }
416
+ return props.data;
416
417
  }, [props.yAxisOffset, props.data]);
417
418
  const data2 = useMemo(() => {
418
419
  if (!props.data2) {
@@ -424,6 +425,7 @@ export const LineChart = (props: propTypes) => {
424
425
  return item;
425
426
  });
426
427
  }
428
+ return props.data2;
427
429
  }, [props.yAxisOffset, props.data2]);
428
430
  const data3 = useMemo(() => {
429
431
  if (!props.data3) {
@@ -435,6 +437,7 @@ export const LineChart = (props: propTypes) => {
435
437
  return item;
436
438
  });
437
439
  }
440
+ return props.data3;
438
441
  }, [props.yAxisOffset, props.data3]);
439
442
  const data4 = useMemo(() => {
440
443
  if (!props.data4) {
@@ -446,6 +449,7 @@ export const LineChart = (props: propTypes) => {
446
449
  return item;
447
450
  });
448
451
  }
452
+ return props.data4;
449
453
  }, [props.yAxisOffset, props.data4]);
450
454
  const data5 = useMemo(() => {
451
455
  if (!props.data5) {
@@ -457,6 +461,7 @@ export const LineChart = (props: propTypes) => {
457
461
  return item;
458
462
  });
459
463
  }
464
+ return props.data5;
460
465
  }, [props.yAxisOffset, props.data5]);
461
466
 
462
467
  const scrollToEnd = props.scrollToEnd || false;