gluestack / gluestack-ui

React & React Native Components & Patterns (copy-paste components & patterns crafted with Tailwind CSS (NativeWind))
https://gluestack.io/
MIT License
2.81k stars 120 forks source link

AlertDialog is not shown in a modal screen #2498

Closed zhouhao27 closed 1 month ago

zhouhao27 commented 1 month ago

Description

AlertDialog is not shown in a modal screen

CodeSandbox/Snack link

https://github.com/zhouhao27/alertDialog-demo

Steps to reproduce

  1. Run my application
  2. Click on 'Open a modal view'
  3. No AlertDialog is shown

Simulator Screenshot - iPhone 15 Pro - 2024-10-03 at 15 07 42

To make it work:

  1. Goto _layout.tsx at root.
  2. Remove presentation: modal
  3. Run the app again
  4. Click on 'Open a modal view'

Simulator Screenshot - iPhone 15 Pro - 2024-10-03 at 15 07 22

gluestack-ui Version

3.3.1

Platform

Other Platform

No response

Additional Information

No response

sra1kumar-NULL commented 1 month ago

Hey @zhouhao27 , Thanks for reporting we've updated the alert Dialog component, please update to the latest version of alert dialog that should fix this issue. Closing this issue for now. Please feel free to reopen this issue again if the issues persists.