11import React , { memo , useMemo } from 'react' ;
22import type { ViewProps , ViewStyle } from 'react-native' ;
3- import Animated , {
3+ import {
44 type AnimatedStyle ,
55 useAnimatedStyle ,
66 useDerivedValue ,
@@ -14,7 +14,6 @@ import { useBottomSheetInternal } from '../../hooks';
1414import type { NullableAccessibilityProps } from '../../types' ;
1515import { animate } from '../../utilities' ;
1616import BottomSheetDraggableView from '../bottomSheetDraggableView' ;
17- import { } from './constants' ;
1817import type { BottomSheetProps } from './types' ;
1918
2019type BottomSheetContent = {
@@ -45,7 +44,6 @@ function BottomSheetContentComponent({
4544 const {
4645 enableDynamicSizing,
4746 overDragResistanceFactor,
48- enableContentPanningGesture,
4947 animatedPosition,
5048 animatedLayoutState,
5149 animatedDetentsState,
@@ -234,19 +232,16 @@ function BottomSheetContentComponent({
234232 //#endregion
235233
236234 //#region render
237- const DraggableView = enableContentPanningGesture
238- ? BottomSheetDraggableView
239- : Animated . View ;
240235 return (
241- < DraggableView
236+ < BottomSheetDraggableView
242237 accessible = { accessible }
243238 accessibilityLabel = { accessibilityLabel }
244239 accessibilityHint = { accessibilityHint }
245240 accessibilityRole = { accessibilityRole }
246241 style = { contentContainerStyle }
247242 >
248243 { children }
249- </ DraggableView >
244+ </ BottomSheetDraggableView >
250245 ) ;
251246 //#endregion
252247}
0 commit comments