Skip to content

Instantly share code, notes, and snippets.

@araphiel
Last active April 12, 2024 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save araphiel/b3d13ade7f9fe69e99c3d053196557d2 to your computer and use it in GitHub Desktop.
Save araphiel/b3d13ade7f9fe69e99c3d053196557d2 to your computer and use it in GitHub Desktop.
Typechecking fix for react-native-gifted-charts

Typechecking fix for react-native-gifted-charts

Note: Includes the subdependency gifted-charts-core+0.0.21.patch

Fixes an issue where these packages prevent strict typechecking for any codebases using this package.

Instructions

  1. Setup patch-package - https://www.npmjs.com/package/patch-package
  2. Add the following files to your patches folder in your project's root directory
  3. Reinstall your packages

Alternative Instructions

  1. Setup patch-package - https://www.npmjs.com/package/patch-package
  2. Run the commands within your project's root directory
find ./node_modules/react-native-gifted-charts/src \( -name "*.ts" -o -name "*.tsx" \) -exec sed -i '' '1i\
// @ts-nocheck
' {} \;

find ./node_modules/gifted-charts-core/src \( -name "*.ts" -o -name "*.tsx" \) -exec sed -i '' '1i\
// @ts-nocheck
' {} \;

npx patch-package react-native-gifted-charts
npx patch-package gifted-charts-core
  1. Ensure that exported types within the entrypoint index.ts files of both packages are prefixed with type.
diff --git a/node_modules/gifted-charts-core/index.ts b/node_modules/gifted-charts-core/index.ts
index 660c010..94170e3 100644
--- a/node_modules/gifted-charts-core/index.ts
+++ b/node_modules/gifted-charts-core/index.ts
@@ -5,7 +5,7 @@
export { useBarChart } from "./src/BarChart";
export { getPropsForAnimated2DWithGradient } from "./src/BarChart/Animated2DWithGradient";
export { useRenderStackBars } from "./src/BarChart/RenderStackBars";
-export {
+export type {
stackDataItem,
StackedBarChartPropsType,
BarChartPropsType,
@@ -25,7 +25,7 @@ export {
export { useLineChart } from "./src/LineChart";
export { useLineChartBiColor } from "./src/LineChart/LineChartBiColor";
-export {
+export type {
LineChartPropsType,
lineDataItem,
bicolorLineDataItem,
@@ -38,7 +38,7 @@ export {
export { usePieChart } from "./src/PieChart";
export { getPieChartMainProps } from "./src/PieChart/main";
-export {
+export type {
PieChartPropsType,
pieDataItem,
PieChartMainProps,
@@ -49,7 +49,7 @@ export {
/***********************************************************************************************************************/
export { usePopulationPyramid } from "./src/PopulationPyramid";
-export {
+export type {
popnPyramidDataItem,
RulesProps,
PopulationPyramidPropsType,
@@ -119,23 +119,23 @@ export {
} from "./src/utils/constants";
export {
- RuleType,
- RuleTypes,
- RulesConfig,
+ type RuleType,
+ type RuleTypes,
+ type RulesConfig,
CurveType,
EdgePosition,
- PointerEvents,
- secondaryYAxisType,
- secondaryLineConfigType,
- referenceConfigType,
- arrowConfigType,
- horizSectionPropTypes,
- HorizSectionsType,
- BarAndLineChartsWrapperTypes,
- Pointer,
- HighlightedRange,
- LineSegment,
- LineSvgProps,
- LineProperties,
- DataSet,
+ type PointerEvents,
+ type secondaryYAxisType,
+ type secondaryLineConfigType,
+ type referenceConfigType,
+ type arrowConfigType,
+ type horizSectionPropTypes,
+ type HorizSectionsType,
+ type BarAndLineChartsWrapperTypes,
+ type Pointer,
+ type HighlightedRange,
+ type LineSegment,
+ type LineSvgProps,
+ type LineProperties,
+ type DataSet,
} from "./src/utils/types";
diff --git a/node_modules/gifted-charts-core/src/BarChart/Animated2DWithGradient.ts b/node_modules/gifted-charts-core/src/BarChart/Animated2DWithGradient.ts
index e38f08a..fdcb79e 100644
--- a/node_modules/gifted-charts-core/src/BarChart/Animated2DWithGradient.ts
+++ b/node_modules/gifted-charts-core/src/BarChart/Animated2DWithGradient.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { ViewStyle } from "react-native";
import { getBarFrontColor, getBarWidth } from "../utils";
import { CommonPropsFor2Dand3DbarsType } from "./types";
diff --git a/node_modules/gifted-charts-core/src/BarChart/RenderStackBars.ts b/node_modules/gifted-charts-core/src/BarChart/RenderStackBars.ts
index 6a85e1a..c68d91c 100644
--- a/node_modules/gifted-charts-core/src/BarChart/RenderStackBars.ts
+++ b/node_modules/gifted-charts-core/src/BarChart/RenderStackBars.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useState } from "react";
import { StackedBarChartPropsType, stackDataItem } from "./types";
diff --git a/node_modules/gifted-charts-core/src/BarChart/index.ts b/node_modules/gifted-charts-core/src/BarChart/index.ts
index 76b53ee..c208c4a 100644
--- a/node_modules/gifted-charts-core/src/BarChart/index.ts
+++ b/node_modules/gifted-charts-core/src/BarChart/index.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useEffect, useMemo, useState } from "react";
import { BarChartPropsType, barDataItem } from "./types";
import {
diff --git a/node_modules/gifted-charts-core/src/BarChart/types.ts b/node_modules/gifted-charts-core/src/BarChart/types.ts
index bf55601..9a0783d 100644
--- a/node_modules/gifted-charts-core/src/BarChart/types.ts
+++ b/node_modules/gifted-charts-core/src/BarChart/types.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { ColorValue, GestureResponderEvent, ViewStyle } from "react-native";
import { yAxisSides } from "../utils/constants";
import {
diff --git a/node_modules/gifted-charts-core/src/LineChart/LineChartBiColor.ts b/node_modules/gifted-charts-core/src/LineChart/LineChartBiColor.ts
index 4544d40..c57655f 100644
--- a/node_modules/gifted-charts-core/src/LineChart/LineChartBiColor.ts
+++ b/node_modules/gifted-charts-core/src/LineChart/LineChartBiColor.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useEffect, useMemo, useState } from "react";
import {
AxesAndRulesDefaults,
diff --git a/node_modules/gifted-charts-core/src/LineChart/index.ts b/node_modules/gifted-charts-core/src/LineChart/index.ts
index f76dc36..4b3fd77 100644
--- a/node_modules/gifted-charts-core/src/LineChart/index.ts
+++ b/node_modules/gifted-charts-core/src/LineChart/index.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useEffect, useMemo, useState } from "react";
import {
AxesAndRulesDefaults,
diff --git a/node_modules/gifted-charts-core/src/LineChart/types.ts b/node_modules/gifted-charts-core/src/LineChart/types.ts
index c53a04b..7ad776b 100644
--- a/node_modules/gifted-charts-core/src/LineChart/types.ts
+++ b/node_modules/gifted-charts-core/src/LineChart/types.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { ColorValue } from "react-native";
import { yAxisSides } from "../utils/constants";
import {
diff --git a/node_modules/gifted-charts-core/src/PieChart/index.ts b/node_modules/gifted-charts-core/src/PieChart/index.ts
index bda683f..c782482 100644
--- a/node_modules/gifted-charts-core/src/PieChart/index.ts
+++ b/node_modules/gifted-charts-core/src/PieChart/index.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useEffect, useState } from "react";
import { PieChartPropsType } from "./types";
import { getTextSizeForPieLabels } from "../utils";
diff --git a/node_modules/gifted-charts-core/src/PieChart/main.ts b/node_modules/gifted-charts-core/src/PieChart/main.ts
index cf06ed6..a38f7c9 100644
--- a/node_modules/gifted-charts-core/src/PieChart/main.ts
+++ b/node_modules/gifted-charts-core/src/PieChart/main.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { getTextSizeForPieLabels } from "../utils";
import { PieChartMainProps, pieDataItem } from "./types";
diff --git a/node_modules/gifted-charts-core/src/PieChart/types.ts b/node_modules/gifted-charts-core/src/PieChart/types.ts
index b3a6cca..74317d0 100644
--- a/node_modules/gifted-charts-core/src/PieChart/types.ts
+++ b/node_modules/gifted-charts-core/src/PieChart/types.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { ColorValue } from "react-native";
import { FontStyle } from "react-native-svg";
diff --git a/node_modules/gifted-charts-core/src/PopulationPyramid/index.ts b/node_modules/gifted-charts-core/src/PopulationPyramid/index.ts
index 3bce29e..182d284 100644
--- a/node_modules/gifted-charts-core/src/PopulationPyramid/index.ts
+++ b/node_modules/gifted-charts-core/src/PopulationPyramid/index.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import {
AxesAndRulesDefaults,
populationDefaults,
diff --git a/node_modules/gifted-charts-core/src/PopulationPyramid/types.ts b/node_modules/gifted-charts-core/src/PopulationPyramid/types.ts
index 54a18a3..096c1a8 100644
--- a/node_modules/gifted-charts-core/src/PopulationPyramid/types.ts
+++ b/node_modules/gifted-charts-core/src/PopulationPyramid/types.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { ColorValue } from "react-native";
import { RuleTypes } from "../utils/types";
import { FontStyle, FontWeight } from "react-native-svg";
diff --git a/node_modules/gifted-charts-core/src/components/AnimatedThreeDBar/index.tsx b/node_modules/gifted-charts-core/src/components/AnimatedThreeDBar/index.tsx
index 2347e7c..32d3b02 100644
--- a/node_modules/gifted-charts-core/src/components/AnimatedThreeDBar/index.tsx
+++ b/node_modules/gifted-charts-core/src/components/AnimatedThreeDBar/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useState } from "react";
import { animatedBarPropTypes } from "../../BarChart/types";
import { BarDefaults } from "../../utils/constants";
diff --git a/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.ts b/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.ts
index a23d1b4..5b0ef77 100644
--- a/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.ts
+++ b/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { AxesAndRulesDefaults } from "../../utils/constants";
import { HorizSectionsType, secondaryYAxisType } from "../../utils/types";
import { computeMaxAndMinItems, getLabelTextUtil } from "../../utils";
diff --git a/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/index.ts b/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/index.ts
index 4b1db0c..c42f6d6 100644
--- a/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/index.ts
+++ b/node_modules/gifted-charts-core/src/components/BarAndLineChartsWrapper/index.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { useEffect, useState } from "react";
import { AxesAndRulesDefaults, BarDefaults } from "../../utils/constants";
import {
diff --git a/node_modules/gifted-charts-core/src/components/common/StripAndLabel.ts b/node_modules/gifted-charts-core/src/components/common/StripAndLabel.ts
index a5234b1..8449dc6 100644
--- a/node_modules/gifted-charts-core/src/components/common/StripAndLabel.ts
+++ b/node_modules/gifted-charts-core/src/components/common/StripAndLabel.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { screenWidth } from "../../utils/constants";
export const getTopAndLeftForStripAndLabel = (props) => {
diff --git a/node_modules/gifted-charts-core/src/utils/constants.ts b/node_modules/gifted-charts-core/src/utils/constants.ts
index 2d7ccca..54c4f12 100644
--- a/node_modules/gifted-charts-core/src/utils/constants.ts
+++ b/node_modules/gifted-charts-core/src/utils/constants.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { defaultLineConfigType } from "../BarChart/types";
import { CurveType, EdgePosition, RuleTypes } from "./types";
import { Dimensions } from "react-native";
diff --git a/node_modules/gifted-charts-core/src/utils/index.tsx b/node_modules/gifted-charts-core/src/utils/index.tsx
index a2e94a0..7939caf 100644
--- a/node_modules/gifted-charts-core/src/utils/index.tsx
+++ b/node_modules/gifted-charts-core/src/utils/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { lineDataItem } from "../LineChart/types";
import {
AxesAndRulesDefaults,
diff --git a/node_modules/gifted-charts-core/src/utils/types.ts b/node_modules/gifted-charts-core/src/utils/types.ts
index 671872c..ac50079 100644
--- a/node_modules/gifted-charts-core/src/utils/types.ts
+++ b/node_modules/gifted-charts-core/src/utils/types.ts
@@ -1,3 +1,4 @@
+// @ts-nocheck
import { ColorValue } from "react-native";
import { chartTypes, yAxisSides } from "./constants";
import { lineDataItem } from "../LineChart/types";
diff --git a/node_modules/react-native-gifted-charts/src/BarChart/Animated2DWithGradient.tsx b/node_modules/react-native-gifted-charts/src/BarChart/Animated2DWithGradient.tsx
index 6f4c959..0a9973c 100644
--- a/node_modules/react-native-gifted-charts/src/BarChart/Animated2DWithGradient.tsx
+++ b/node_modules/react-native-gifted-charts/src/BarChart/Animated2DWithGradient.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {useEffect, useState} from 'react';
import {View, LayoutAnimation, Platform, UIManager, Text} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
diff --git a/node_modules/react-native-gifted-charts/src/BarChart/RenderBars.tsx b/node_modules/react-native-gifted-charts/src/BarChart/RenderBars.tsx
index 407e960..0aa9c50 100644
--- a/node_modules/react-native-gifted-charts/src/BarChart/RenderBars.tsx
+++ b/node_modules/react-native-gifted-charts/src/BarChart/RenderBars.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View, TouchableOpacity, Animated, Text} from 'react-native';
import AnimatedThreeDBar from '../Components/AnimatedThreeDBar';
diff --git a/node_modules/react-native-gifted-charts/src/BarChart/RenderStackBars.tsx b/node_modules/react-native-gifted-charts/src/BarChart/RenderStackBars.tsx
index b3f437d..c2a0c2c 100644
--- a/node_modules/react-native-gifted-charts/src/BarChart/RenderStackBars.tsx
+++ b/node_modules/react-native-gifted-charts/src/BarChart/RenderStackBars.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {useEffect} from 'react';
import {
View,
diff --git a/node_modules/react-native-gifted-charts/src/BarChart/index.tsx b/node_modules/react-native-gifted-charts/src/BarChart/index.tsx
index b2a71a6..981866a 100644
--- a/node_modules/react-native-gifted-charts/src/BarChart/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/BarChart/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {useCallback, useEffect, useMemo, useRef} from 'react';
import {Animated, Easing, View} from 'react-native';
import RenderBars from './RenderBars';
diff --git a/node_modules/react-native-gifted-charts/src/BarChart/styles.tsx b/node_modules/react-native-gifted-charts/src/BarChart/styles.tsx
index f6af90e..cab9dbc 100644
--- a/node_modules/react-native-gifted-charts/src/BarChart/styles.tsx
+++ b/node_modules/react-native-gifted-charts/src/BarChart/styles.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
diff --git a/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/index.tsx b/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/index.tsx
index 81d02ed..6daca13 100644
--- a/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {useEffect, useState} from 'react';
import {
View,
diff --git a/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/styles.tsx b/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/styles.tsx
index 956751f..56ebcd0 100644
--- a/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/styles.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/AnimatedThreeDBar/styles.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/index.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/index.tsx
index 70a5a30..2d295eb 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {Fragment, useEffect} from 'react';
import {View, ScrollView, StyleSheet} from 'react-native';
import {renderHorizSections} from './renderHorizSections';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx
index b8e020c..93a4998 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderHorizSections.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {Text, View} from 'react-native';
import Rule from '../lineSvg';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/index.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/index.tsx
index 9296ca9..4cd7042 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View, Animated} from 'react-native';
import Svg, {Path} from 'react-native-svg';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderDataPoints.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderDataPoints.tsx
index 50bad33..d822845 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderDataPoints.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderDataPoints.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {Fragment} from 'react';
import {styles} from '../../../BarChart/styles';
import {View} from 'react-native';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificDataPoints.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificDataPoints.tsx
index 5f78a17..2f9eddf 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificDataPoints.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificDataPoints.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {Fragment} from 'react';
import {getXForLineInBar, getYForLineInBar} from 'gifted-charts-core';
import {Circle, Rect, Text as CanvasText} from 'react-native-svg';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificVerticalLines.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificVerticalLines.tsx
index 32a91e4..9769f0d 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificVerticalLines.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderLineInBarChart/renderSpecificVerticalLines.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {Rect} from 'react-native-svg';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderVerticalLines.tsx b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderVerticalLines.tsx
index d31e483..26af2ac 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderVerticalLines.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarAndLineChartsWrapper/renderVerticalLines.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View} from 'react-native';
import {chartTypes} from 'gifted-charts-core';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/barBackgroundPattern.tsx b/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/barBackgroundPattern.tsx
index 2d98756..9057bce 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/barBackgroundPattern.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/barBackgroundPattern.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import Svg, {Defs, Rect} from 'react-native-svg';
diff --git a/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/cap.tsx b/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/cap.tsx
index 26ed34d..76970d8 100644
--- a/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/cap.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/BarSpecificComponents/cap.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View} from 'react-native';
import {BarDefaults} from 'gifted-charts-core';
diff --git a/node_modules/react-native-gifted-charts/src/Components/common/Pointer.tsx b/node_modules/react-native-gifted-charts/src/Components/common/Pointer.tsx
index 83a4017..30e472b 100644
--- a/node_modules/react-native-gifted-charts/src/Components/common/Pointer.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/common/Pointer.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View} from 'react-native';
diff --git a/node_modules/react-native-gifted-charts/src/Components/common/StripAndLabel.tsx b/node_modules/react-native-gifted-charts/src/Components/common/StripAndLabel.tsx
index 27e7ce0..9671bde 100644
--- a/node_modules/react-native-gifted-charts/src/Components/common/StripAndLabel.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/common/StripAndLabel.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View} from 'react-native';
import Svg, {Line} from 'react-native-svg';
diff --git a/node_modules/react-native-gifted-charts/src/Components/lineSvg.tsx b/node_modules/react-native-gifted-charts/src/Components/lineSvg.tsx
index 08cc34a..7b12ae0 100644
--- a/node_modules/react-native-gifted-charts/src/Components/lineSvg.tsx
+++ b/node_modules/react-native-gifted-charts/src/Components/lineSvg.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import * as React from 'react';
import {ColorValue} from 'react-native';
import Svg, {G, Path} from 'react-native-svg';
diff --git a/node_modules/react-native-gifted-charts/src/LineChart/LineChartBicolor.tsx b/node_modules/react-native-gifted-charts/src/LineChart/LineChartBicolor.tsx
index b697ddd..8eee3cc 100644
--- a/node_modules/react-native-gifted-charts/src/LineChart/LineChartBicolor.tsx
+++ b/node_modules/react-native-gifted-charts/src/LineChart/LineChartBicolor.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {Fragment, useCallback, useEffect, useMemo, useRef} from 'react';
import {View, Animated, Easing, Text} from 'react-native';
import {styles} from './styles';
diff --git a/node_modules/react-native-gifted-charts/src/LineChart/index.tsx b/node_modules/react-native-gifted-charts/src/LineChart/index.tsx
index 22da20d..694284d 100644
--- a/node_modules/react-native-gifted-charts/src/LineChart/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/LineChart/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {Fragment, useCallback, useEffect, useMemo, useRef} from 'react';
import {
View,
diff --git a/node_modules/react-native-gifted-charts/src/LineChart/styles.tsx b/node_modules/react-native-gifted-charts/src/LineChart/styles.tsx
index f9317fd..ae62c40 100644
--- a/node_modules/react-native-gifted-charts/src/LineChart/styles.tsx
+++ b/node_modules/react-native-gifted-charts/src/LineChart/styles.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import {StyleSheet} from 'react-native';
export const styles = StyleSheet.create({
diff --git a/node_modules/react-native-gifted-charts/src/PieChart/index.tsx b/node_modules/react-native-gifted-charts/src/PieChart/index.tsx
index 6fef8e7..614fc5d 100644
--- a/node_modules/react-native-gifted-charts/src/PieChart/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/PieChart/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View} from 'react-native';
import {PieChartMain} from './main';
diff --git a/node_modules/react-native-gifted-charts/src/PieChart/main.tsx b/node_modules/react-native-gifted-charts/src/PieChart/main.tsx
index 386e342..d65a9ed 100644
--- a/node_modules/react-native-gifted-charts/src/PieChart/main.tsx
+++ b/node_modules/react-native-gifted-charts/src/PieChart/main.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React from 'react';
import {View} from 'react-native';
import Svg, {
diff --git a/node_modules/react-native-gifted-charts/src/PopulationPyramid/index.tsx b/node_modules/react-native-gifted-charts/src/PopulationPyramid/index.tsx
index 0f63e9e..cb41548 100644
--- a/node_modules/react-native-gifted-charts/src/PopulationPyramid/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/PopulationPyramid/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
import React, {Fragment} from 'react';
import {View} from 'react-native';
import {
diff --git a/node_modules/react-native-gifted-charts/src/index.tsx b/node_modules/react-native-gifted-charts/src/index.tsx
index f9e713d..96e5358 100644
--- a/node_modules/react-native-gifted-charts/src/index.tsx
+++ b/node_modules/react-native-gifted-charts/src/index.tsx
@@ -1,3 +1,4 @@
+// @ts-nocheck
export {BarChart} from './BarChart';
export {PieChart} from './PieChart';
export {LineChart} from './LineChart';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment