handle inner components

This commit is contained in:
vineyardbovines
2026-03-05 12:23:25 -05:00
parent 7f4c81a837
commit c97128c106
+2 -16
View File
@@ -261,18 +261,8 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
{children, contentContainerStyle, header, ...props},
ref,
) {
const {nativeSnapPoint, disableDrag, setDisableDrag, type} =
useDialogContext()
const {nativeSnapPoint, disableDrag, setDisableDrag} = useDialogContext()
const insets = useSafeAreaInsets()
if (type === 'alert') {
return (
<View style={[a.p_2xl, contentContainerStyle]} {...props}>
{header}
{children}
</View>
)
}
const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full
let paddingBottom = 0
@@ -440,11 +430,7 @@ export function Handle({
const t = useTheme()
const {_} = useLingui()
const {screenReaderEnabled} = useA11y()
const {close, type} = useDialogContext()
if (type === 'alert') {
return null
}
const {close} = useDialogContext()
return (
<View style={[a.absolute, a.w_full, a.align_center, a.z_10, {height: 20}]}>