Buttons / Pressables inside AlertDialog don't work #2759
Unanswered
sahajarora1286
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I just got Gluestack set up and working in my React Native app. The first component I tried to render is the AlertDialog.
The dialog opens up and renders fine with appropriate styling, however, the buttons / pressables that I place inside the AlertDialog are non-responsive , i.e, the
onPress
hooks don't get trigerred when I click those buttons.In the attached screenshot, you can see there's three buttons. Two inside
<AlertDialogFooter>
and one blue button that reads "Close Dialog" which is a custom<Pressable>
.The
onPress
functions aren't triggered on clicking any of these buttons.Here's the code:
Any help would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions