react-native-reusables icon indicating copy to clipboard operation
react-native-reusables copied to clipboard

[ BUG ] Alert Dialog crashing on web, but not native

Open rachelslurs opened this issue 1 year ago • 0 comments

Describe the bug I think I am experiencing the same issue as mentioned here https://github.com/mrzachnugent/react-native-reusables/issues/140. I notice the Dialog component is working on both native and web and I suspect this might have to do with the explicit use of {children} rather than a spread on {...props}, but I can't figure out what would cause the Alert Dialog to crash on web only given I see it works on the showcase app.

To Reproduce Steps to reproduce the behavior:

  1. npx expo start -c
  2. Go to the web version
  3. Click on "Show Alert Dialog"
  4. See error

Expected behavior I'd expect it to work on both native and web.

Screenshots

Image

Platform (please complete the following information):

  • Type: Browser
  • OS: [e.g. iOS] Mac OS 15.3
  • Browser (if applies) [e.g. chrome, safari] Chrome

Additional context https://github.com/rachelslurs/rnr-alert-bug Deployed to github pages: https://rachelslurs.github.io/rnr-alert-bug/

rachelslurs avatar Feb 08 '25 17:02 rachelslurs