Expo crashes when closing Magic login popup window
yogiben opened this issue ยท 2 comments
๐ Description
Expo simulator crashes when Magic popup is closed e.g. by pressing "X"
๐งฉ Steps to Reproduce
- Open popup
- Enter bad email
- Click X button
๐ค Expected behavior
Closes webview
๐ฎ Actual behavior
Whole app crashes on simulator.
error log.txt
Hi @yogiben
I was unable to reproduce this issue on my end. I ran our React Native expo demo locally, entered in an invalid email address, and was then able to close the modal successfully. I also tried with a valid email address, but then clicked the "x" before entering in the OTP, and was again able to successfully close the modal without it crashing. Are you attempting this in our demo app, or your own?
Hey @joshuascan
I managed to fix this by moving it to a higher component in the app. I think it was caused by the component rendering within a component where the state change was causing the ML component to disappear.