Skip to content

Commit 64bdb8e

Browse files
committed
bump reanimated dep version
1 parent aa1ef89 commit 64bdb8e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"homepage": "https://github.com/computerjazz/react-native-draggable-flatlist#readme",
4747
"peerDependencies": {
4848
"react-native": ">=0.62.0",
49-
"react-native-gesture-handler": ">=1.0.0",
50-
"react-native-reanimated": ">=1.9.0"
49+
"react-native-gesture-handler": ">=1.10.0",
50+
"react-native-reanimated": ">=2.2.0"
5151
},
5252
"devDependencies": {
5353
"@testing-library/react-native": "^7.2.0",

src/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ export const isWeb = Platform.OS === "web";
2929

3030
// Is there a better way to check for v2?
3131
export const isReanimatedV2 = !!useSharedValue;
32+
33+
if (!isReanimatedV2) {
34+
console.warn(
35+
"Your version of react-native-reanimated is too old for react-native-draggable-flatlist. It may not work as expected."
36+
);
37+
}

0 commit comments

Comments
 (0)