Skip to content

Commit fc92105

Browse files
authored
Fix incorrect paths (#3548)
## Description `tsconfig.json` files had a path that did not exist, therefore imports from Gesture Handler were marked red with message `cannot find module`. ## Test plan Run `yarn ts-check`
1 parent 778cab5 commit fc92105

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

apps/basic-example/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@
55
"baseUrl": ".",
66
"paths": {
77
"react-native-gesture-handler": [
8-
"../../packages/react-native-gesture-handler/index.ts"
8+
"../../packages/react-native-gesture-handler/src"
99
],
1010
"react-native-gesture-handler/ReanimatedSwipeable": [
1111
"../../packages/react-native-gesture-handler/src/components/ReanimatedSwipeable.tsx"
1212
],
13+
"react-native-gesture-handler/ReanimatedDrawerLayout": [
14+
"../../packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx"
15+
],
1316
"react-native-gesture-handler/jest-utils": [
1417
"../../packages/react-native-gesture-handler/src/jestUtils/index.ts"
1518
]

apps/common-app/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
"paths": {
77
"@/*": ["./*"],
88
"react-native-gesture-handler": [
9-
"../../packages/react-native-gesture-handler/index.ts"
9+
"../../packages/react-native-gesture-handler/src"
1010
],
1111
"react-native-gesture-handler/ReanimatedSwipeable": [
1212
"../../packages/react-native-gesture-handler/src/components/ReanimatedSwipeable.tsx"
1313
],
14+
"react-native-gesture-handler/ReanimatedDrawerLayout": [
15+
"../../packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx"
16+
],
1417
"react-native-gesture-handler/jest-utils": [
1518
"../../packages/react-native-gesture-handler/src/jestUtils/index.ts"
1619
]

apps/expo-example/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"react-native-gesture-handler/ReanimatedSwipeable": [
1212
"../../packages/react-native-gesture-handler/src/components/ReanimatedSwipeable.tsx"
1313
],
14+
"react-native-gesture-handler/ReanimatedDrawerLayout": [
15+
"../../packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx"
16+
],
1417
"react-native-gesture-handler/jest-utils": [
1518
"../../packages/react-native-gesture-handler/src/jestUtils/index.ts"
1619
]

apps/macos-example/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
"paths": {
77
"common-app": ["../common-app/index.ts"],
88
"react-native-gesture-handler": [
9-
"../../packages/react-native-gesture-handler/index.ts"
9+
"../../packages/react-native-gesture-handler/src"
1010
],
1111
"react-native-gesture-handler/ReanimatedSwipeable": [
1212
"../../packages/react-native-gesture-handler/src/components/ReanimatedSwipeable.tsx"
1313
],
14+
"react-native-gesture-handler/ReanimatedDrawerLayout": [
15+
"../../packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx"
16+
],
1417
"react-native-gesture-handler/jest-utils": [
1518
"../../packages/react-native-gesture-handler/src/jestUtils/index.ts"
1619
]

0 commit comments

Comments
 (0)