Overlays
Action sheet
list of actions + Cancel
function ActionSheetDemo() { const [open, setOpen] = React.useState(false); const [last, setLast] = React.useState(''); return ( <View className="w-full gap-2"> <Button variant="outline" className="w-full" onPress={() => setOpen(true)}> <Text>Manage item</Text> </Button> {last ? <Text className="text-muted-foreground text-sm">Last action: {last}</Text> : null} <ActionSheet open={open} onClose={() => setOpen(false)} title="Manage item" items={[ { label: 'Share', icon: ShareIcon, onPress: () => setLast('share') }, { label: 'Edit', icon: PencilIcon, onPress: () => setLast('edit') }, { label: 'Delete', icon: Trash2Icon, destructive: true, onPress: () => setLast('delete') }, ]} /> </View> );}API
<ActionSheet open onClose title? items={[{label,icon?,destructive?,onPress}]} />Get it
Already in every copy of the native kit:
import { ActionSheet } from '@/components/kit/sheet';Details
- Exports
ActionSheet- Packages
- lucide-react-native@^1.21.0, react-native-safe-area-context@~5.7.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-haptics, @halftone-native/lib-reduced-motion, @halftone-native/lib-theme, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- actions, more menu, share delete
- Registry JSON
- /r/native/sheet.json
Agents: the whole registry is at /llms.txt.