Skip to content

Commit

Permalink
fix: don't wrap content with BottomSheetView when enableDynamicSizing…
Browse files Browse the repository at this point in the history
… is true
  • Loading branch information
jeanregisser committed Sep 10, 2024
1 parent ef8c616 commit 954bcf3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/BottomSheetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
BottomSheetModal,
BottomSheetModalProps,
BottomSheetModalProvider,
BottomSheetView as RNBottomSheetView,
} from '@gorhom/bottom-sheet';
import { ParamListBase, useTheme } from '@react-navigation/native';
import * as React from 'react';
Expand Down Expand Up @@ -90,11 +89,7 @@ function BottomSheetModalScreen({
onDismiss={onDismiss}
{...props}
>
{enableDynamicSizing ? (
<RNBottomSheetView>{children as React.ReactNode}</RNBottomSheetView>
) : (
children
)}
{children}
</BottomSheetModal>
);
}
Expand Down

0 comments on commit 954bcf3

Please sign in to comment.