diff --git a/src/constants.ts b/src/constants.ts index 7fad438e4..565f7103c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -3,8 +3,7 @@ import { Dimensions, Platform } from 'react-native'; const { height: WINDOW_HEIGHT, width: WINDOW_WIDTH } = Dimensions.get('window'); enum GESTURE { - UNDETERMINED = 0, - CONTENT, + CONTENT = 0, HANDLE, } diff --git a/src/hooks/useBottomSheetTimingConfigs.ts b/src/hooks/useBottomSheetTimingConfigs.ts index eebf813ba..a323ecb85 100644 --- a/src/hooks/useBottomSheetTimingConfigs.ts +++ b/src/hooks/useBottomSheetTimingConfigs.ts @@ -17,17 +17,10 @@ export const useBottomSheetTimingConfigs = ( ) => { return useMemo(() => { const _configs: Animated.WithTimingConfig = { - easing: DEFAULT_ANIMATION_EASING, - duration: DEFAULT_ANIMATION_DURATION, + easing: configs.easing || DEFAULT_ANIMATION_EASING, + duration: configs.duration || DEFAULT_ANIMATION_DURATION, }; - if (configs.easing) { - _configs.easing = configs.easing; - } - - if (configs.duration) { - _configs.duration = configs.duration; - } return _configs; }, [configs.duration, configs.easing]); };