Skip to content

Commit 954bcf3

Browse files
committed
fix: don't wrap content with BottomSheetView when enableDynamicSizing is true
1 parent ef8c616 commit 954bcf3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/BottomSheetView.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
BottomSheetModal,
33
BottomSheetModalProps,
44
BottomSheetModalProvider,
5-
BottomSheetView as RNBottomSheetView,
65
} from '@gorhom/bottom-sheet';
76
import { ParamListBase, useTheme } from '@react-navigation/native';
87
import * as React from 'react';
@@ -90,11 +89,7 @@ function BottomSheetModalScreen({
9089
onDismiss={onDismiss}
9190
{...props}
9291
>
93-
{enableDynamicSizing ? (
94-
<RNBottomSheetView>{children as React.ReactNode}</RNBottomSheetView>
95-
) : (
96-
children
97-
)}
92+
{children}
9893
</BottomSheetModal>
9994
);
10095
}

0 commit comments

Comments
 (0)