@@ -7,7 +7,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context';
77import { GestureHandlerRootView } from 'react-native-gesture-handler' ;
88
99import { useTheme } from '../../theme' ;
10- import { isIOS , isTablet } from '../../lib/methods/helpers' ;
10+ import { isIOS } from '../../lib/methods/helpers' ;
1111import { Handle } from './Handle' ;
1212import { type TActionSheetOptions } from './Provider' ;
1313import BottomSheetContent from './BottomSheetContent' ;
@@ -20,7 +20,7 @@ const ActionSheet = React.memo(
2020 forwardRef ( ( { children } : { children : React . ReactElement } , ref ) => {
2121 const { colors } = useTheme ( ) ;
2222 const { height : windowHeight , fontScale } = useWindowDimensions ( ) ;
23- const { bottom, right , left } = useSafeAreaInsets ( ) ;
23+ const { bottom } = useSafeAreaInsets ( ) ;
2424 const sheetRef = useRef < TrueSheet > ( null ) ;
2525 const [ data , setData ] = useState < TActionSheetOptions > ( { } as TActionSheetOptions ) ;
2626 const [ isVisible , setIsVisible ] = useState ( false ) ;
@@ -89,8 +89,6 @@ const ActionSheet = React.memo(
8989 snapshotOnClose ?.( ) ;
9090 } ;
9191
92- const bottomSheetStyle = isTablet ? styles . bottomSheet : { marginRight : right , marginLeft : left } ;
93-
9492 const { detents, maxHeight } = useActionSheetDetents ( {
9593 windowHeight,
9694 bottomInset : bottom ,
@@ -130,7 +128,7 @@ const ActionSheet = React.memo(
130128 draggable = { ! disableContentPanning }
131129 header = { renderHeader ( ) }
132130 scrollable = { isScrollable }
133- style = { [ styles . container , bottomSheetStyle ] }
131+ style = { [ styles . container ] }
134132 onDidDismiss = { onDidDismiss } >
135133 < GestureHandlerRootView style = { styles . contentContainer } >
136134 < BottomSheetContent
0 commit comments