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}, {children, contentContainerStyle, header, ...props},
ref, ref,
) { ) {
const {nativeSnapPoint, disableDrag, setDisableDrag, type} = const {nativeSnapPoint, disableDrag, setDisableDrag} = useDialogContext()
useDialogContext()
const insets = useSafeAreaInsets() const insets = useSafeAreaInsets()
if (type === 'alert') {
return (
<View style={[a.p_2xl, contentContainerStyle]} {...props}>
{header}
{children}
</View>
)
}
const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full
let paddingBottom = 0 let paddingBottom = 0
@@ -440,11 +430,7 @@ export function Handle({
const t = useTheme() const t = useTheme()
const {_} = useLingui() const {_} = useLingui()
const {screenReaderEnabled} = useA11y() const {screenReaderEnabled} = useA11y()
const {close, type} = useDialogContext() const {close} = useDialogContext()
if (type === 'alert') {
return null
}
return ( return (
<View style={[a.absolute, a.w_full, a.align_center, a.z_10, {height: 20}]}> <View style={[a.absolute, a.w_full, a.align_center, a.z_10, {height: 20}]}>