From 954bcf38fa4503f018585d6cca1d854cab07841f Mon Sep 17 00:00:00 2001 From: Jean Regisser Date: Tue, 10 Sep 2024 14:51:55 +0200 Subject: [PATCH] fix: don't wrap content with BottomSheetView when enableDynamicSizing is true --- src/BottomSheetView.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/BottomSheetView.tsx b/src/BottomSheetView.tsx index cc6f6c9..4c327e2 100644 --- a/src/BottomSheetView.tsx +++ b/src/BottomSheetView.tsx @@ -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'; @@ -90,11 +89,7 @@ function BottomSheetModalScreen({ onDismiss={onDismiss} {...props} > - {enableDynamicSizing ? ( - {children as React.ReactNode} - ) : ( - children - )} + {children} ); }