react-native-reusables
react-native-reusables copied to clipboard
[ BUG ]
I'm not sure if this is a bug, but according to https://rnr-docs.vercel.app/components/alert-dialog/
The AlertDialogAction extends the Pressable props. So I'd expect something like this to work.
<AlertDialogAction
onPress={handleOnPress}
className={buttonVariants({ variant: 'destructive' })}>
<Text>Dismiss</Text>
</AlertDialogAction>
However the onPress is never called unless I add the asChild prop. Is this a misunderstanding on my part or is it a bug?