Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Dimensions, Platform } from 'react-native';
import type Animated from 'react-native-reanimated';
import { Easing } from 'react-native-reanimated';
import { Easing, EasingFunction } from 'react-native-reanimated';
import type { SpringConfig, TimingConfig } from './types';

const { height: WINDOW_HEIGHT, width: WINDOW_WIDTH } = Dimensions.get('window');
Expand Down Expand Up @@ -69,7 +68,7 @@ enum SNAP_POINT_TYPE {
DYNAMIC = 1,
}

const ANIMATION_EASING: Animated.EasingFunction = Easing.out(Easing.exp);
const ANIMATION_EASING: EasingFunction = Easing.out(Easing.exp);
const ANIMATION_DURATION = 250;

const ANIMATION_CONFIGS = Platform.select<TimingConfig | SpringConfig>({
Expand Down