Skip to content

Commit dcba6e2

Browse files
committed
fix imports
1 parent 99d6068 commit dcba6e2

File tree

10 files changed

+29
-29
lines changed

10 files changed

+29
-29
lines changed

src/components/CellRendererComponent.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
MeasureLayoutOnSuccessCallback,
1212
} from "react-native";
1313
import Animated, { cond, useValue } from "react-native-reanimated";
14-
import { useDraggableFlatListContext } from "../context/DraggableFlatListContext";
14+
import { useDraggableFlatListContext } from "../context/draggableFlatlistContext";
1515
import { isAndroid, isIOS, isReanimatedV2, isWeb } from "../constants";
1616
import { useCellTranslate } from "../hooks/useCellTranslate";
1717
import { typedMemo } from "../utils";
18-
import { useRefs } from "../context/RefContext";
19-
import { useAnimatedValues } from "../context/AnimatedValueContext";
20-
import CellProvider from "../context/CellContext";
18+
import { useRefs } from "../context/refContext";
19+
import { useAnimatedValues } from "../context/animatedValueContext";
20+
import CellProvider from "../context/cellContext";
2121

2222
type Props<T> = {
2323
item: T;

src/components/DraggableFlatList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ import ScrollOffsetListener from "./ScrollOffsetListener";
3535
import { DraggableFlatListProps } from "../types";
3636
import { useAutoScroll } from "../hooks/useAutoScroll";
3737
import { useNode } from "../hooks/useNode";
38-
import PropsProvider from "../context/PropsContext";
38+
import PropsProvider from "../context/propsContext";
3939
import AnimatedValueProvider, {
4040
useAnimatedValues,
41-
} from "../context/AnimatedValueContext";
42-
import RefProvider, { useRefs } from "../context/RefContext";
43-
import DraggableFlatListProvider from "../context/DraggableFlatListContext";
41+
} from "../context/animatedValueContext";
42+
import RefProvider, { useRefs } from "../context/refContext";
43+
import DraggableFlatListProvider from "../context/draggableFlatlistContext";
4444

4545
type RNGHFlatListProps<T> = Animated.AnimateProps<
4646
FlatListProps<T> & {

src/components/PlaceholderItem.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import Animated, {
99
greaterThan,
1010
cond,
1111
} from "react-native-reanimated";
12-
import { useAnimatedValues } from "../context/AnimatedValueContext";
13-
import { useDraggableFlatListContext } from "../context/DraggableFlatListContext";
14-
import { useProps } from "../context/PropsContext";
15-
import { useRefs } from "../context/RefContext";
12+
import { useAnimatedValues } from "../context/animatedValueContext";
13+
import { useDraggableFlatListContext } from "../context/draggableFlatlistContext";
14+
import { useProps } from "../context/propsContext";
15+
import { useRefs } from "../context/refContext";
1616
import { useNode } from "../hooks/useNode";
1717
import { RenderPlaceholder } from "../types";
1818
import { typedMemo } from "../utils";

src/components/RowItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useCallback, useRef } from "react";
2-
import { useDraggableFlatListContext } from "../context/DraggableFlatListContext";
3-
import { useRefs } from "../context/RefContext";
2+
import { useDraggableFlatListContext } from "../context/draggableFlatlistContext";
3+
import { useRefs } from "../context/refContext";
44
import { RenderItem } from "../types";
55
import { typedMemo } from "../utils";
66

src/context/animatedValueContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { State as GestureState } from "react-native-gesture-handler";
1414
import { useNode } from "../hooks/useNode";
1515
import { useMemo } from "react";
16-
import { useProps } from "./PropsContext";
16+
import { useProps } from "./propsContext";
1717

1818
if (!useValue) {
1919
throw new Error("Incompatible Reanimated version (useValue not found)");

src/context/refContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { useMemo, useRef } from "react";
33
import { FlatList, PanGestureHandler } from "react-native-gesture-handler";
44
import Animated from "react-native-reanimated";
55
import { DEFAULT_PROPS } from "../constants";
6-
import { useProps } from "./PropsContext";
7-
import { useAnimatedValues } from "./AnimatedValueContext";
6+
import { useProps } from "./propsContext";
7+
import { useAnimatedValues } from "./animatedValueContext";
88
import { CellData, DraggableFlatListProps } from "../types";
99

1010
type RefContextValue<T> = {

src/hooks/useAutoScroll.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,18 @@ import {
1818
useCode,
1919
useValue,
2020
} from "react-native-reanimated";
21-
import { State as GestureState } from "react-native-gesture-handler";
21+
import { FlatList, State as GestureState } from "react-native-gesture-handler";
2222
import {
2323
DEFAULT_PROPS,
2424
SCROLL_POSITION_TOLERANCE,
25-
isReanimatedV2,
2625
isAndroid,
2726
} from "../constants";
2827
import { useNode } from "../hooks/useNode";
29-
import { useProps } from "../context/PropsContext";
30-
import { useAnimatedValues } from "../context/AnimatedValueContext";
31-
import { useRefs } from "../context/RefContext";
28+
import { useProps } from "../context/propsContext";
29+
import { useAnimatedValues } from "../context/animatedValueContext";
30+
import { useRefs } from "../context/refContext";
3231

33-
export function useAutoScroll() {
32+
export function useAutoScroll<T>() {
3433
const { flatlistRef } = useRefs();
3534
const {
3635
autoscrollThreshold = DEFAULT_PROPS.autoscrollThreshold,

src/hooks/useCellTranslate.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import Animated, {
1010
useCode,
1111
useValue,
1212
} from "react-native-reanimated";
13-
import { useAnimatedValues } from "../context/AnimatedValueContext";
14-
import { useRefs } from "../context/RefContext";
13+
import { useAnimatedValues } from "../context/animatedValueContext";
14+
import { useRefs } from "../context/refContext";
1515
import { setupCell, springFill } from "../procs";
1616
import { useSpring } from "./useSpring";
1717
import { useNode } from "../hooks/useNode";
18-
import { useDraggableFlatListContext } from "../context/DraggableFlatListContext";
18+
import { useDraggableFlatListContext } from "../context/draggableFlatlistContext";
1919

2020
type Params = {
2121
cellIndex: Animated.Value<number>;

src/hooks/useOnCellActiveAnimation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import Animated, {
88
stopClock,
99
useCode,
1010
} from "react-native-reanimated";
11-
import { useAnimatedValues } from "../context/AnimatedValueContext";
12-
import { useIsActive } from "../context/CellContext";
11+
import { useAnimatedValues } from "../context/animatedValueContext";
12+
import { useIsActive } from "../context/cellContext";
1313
import { springFill } from "../procs";
1414
import { useSpring } from "./useSpring";
1515

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"outDir": "./lib",
88
"strict": true,
99
"jsx": "react",
10-
"lib": ["esnext"]
10+
"lib": ["esnext"],
11+
"skipLibCheck": true
1112
},
1213
"include": ["src"],
1314
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)