npx gluestack-ui add actionsheetexport default () => (
<Actionsheet>
<ActionsheetBackdrop />
<ActionsheetContent>
<ActionsheetDragIndicatorWrapper>
<ActionsheetDragIndicator />
</ActionsheetDragIndicatorWrapper>
<ActionsheetItem>
<ActionsheetItemText />
</ActionsheetItem>
</ActionsheetContent>
</Actionsheet>
);
import {
Actionsheet,
ActionsheetBackdrop,
ActionsheetContent,
ActionsheetDragIndicator,
ActionsheetDragIndicatorWrapper,
ActionsheetItem,
ActionsheetItemText,
ActionsheetIcon,
} from '@/components/ui/actionsheet';
| Name | Type | Default | Description |
|---|---|---|---|
isOpen | boolean | false | Whether the actionsheet is open. |
onClose | () => void | - | Callback function when the actionsheet is closed. |
snapPoints | number[] | - | Array of numbers representing the snap points in percentage. |
initialFocusRef | React.RefObject<any> | - | Ref for the element that should be focused when the actionsheet opens. |
finalFocusRef | React.RefObject<any> | - | Ref for the element that should be focused when the actionsheet closes. |