Skip to content

Commit c514cfd

Browse files
committed
update import
1 parent 7aa9bbd commit c514cfd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/constants.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { Platform } from "react-native";
22
import { PanGestureHandlerProperties } from "react-native-gesture-handler";
3-
import Animated, { useSharedValue } from "react-native-reanimated";
3+
import Animated, {
4+
useSharedValue,
5+
WithSpringConfig,
6+
} from "react-native-reanimated";
47

58
// Fire onScrollComplete when within this many px of target offset
69
export const SCROLL_POSITION_TOLERANCE = 2;
7-
export const DEFAULT_ANIMATION_CONFIG: Animated.WithSpringConfig = {
10+
export const DEFAULT_ANIMATION_CONFIG: WithSpringConfig = {
811
damping: 20,
912
mass: 0.2,
1013
stiffness: 100,

0 commit comments

Comments
 (0)