Skip to content

Commit a67a2a3

Browse files
fix: bottom sheet typescript
1 parent b379176 commit a67a2a3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { EasingFunction as EasingFunctionType } from 'react-native-reanimated';
2+
3+
declare module 'react-native-reanimated' {
4+
namespace Animated {
5+
// Extend the Animated namespace to include EasingFunction
6+
// This is needed for @gorhom/bottom-sheet compatibility with react-native-reanimated v4
7+
type EasingFunction = EasingFunctionType;
8+
}
9+
}

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"@env": ["./src/lib/env.js"]
99
},
1010
"esModuleInterop": true,
11-
"checkJs": true,
12-
"skipLibCheck": true
11+
"checkJs": true
1312
},
1413
"exclude": [
1514
"node_modules",

0 commit comments

Comments
 (0)