You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tried to show an alert while not attached to an Activity #46201
Migrating my existing libraries / apps from RN@0.74 to the latest RN@0.75.2. Using new architecture, targeting Android. Got Tried to show an alert while not attached to an Activity error when calling Alert.alert('abc', 'def');. Seems to be a regression of an old bug #13439?
P.S.: No, I had no chance yet to check whether it is reproducible in a clean RN app.
Hmm... it works now for me as well 0.o Tried everything that comes to my mind — the older commit at which I was when reporting it, a clean build, a few different Android versions in the emulator... still no problem anymore.
I got here with the same issue and reading that it magically fixed itself for others made me try to close and reopen the app - and then it was also magically fixed on my end..
Fought this for an hour before finding this and restarting solved mine as well.
Do we have any idea if this is isolated to dev builds? I am concerned that alerts may be failing in production for whatever the same root cause is...
Activity
react-native-bot commentedon Aug 24, 2024
react-native-bot commentedon Aug 24, 2024
cipolleschi commentedon Aug 28, 2024
@birdofpreyru could you provide a reproducer using this template? You can add whichever library you need to make the reproducer work.
It's quite hard for us to help out if we don't know how to repro it.
cipolleschi commentedon Aug 29, 2024
It seems to work fine on my side... Am I missing something?
Screen.Recording.2024-08-29.at.16.32.45.mov
birdofpreyru commentedon Aug 29, 2024
Hmm... it works now for me as well 0.o Tried everything that comes to my mind — the older commit at which I was when reporting it, a clean build, a few different Android versions in the emulator... still no problem anymore.
camerontbelt commentedon Feb 24, 2025
I had react-native-bottom-action-sheet installed, I started seeing this error and uninstalled bottom sheet and the error resolved.
jenskuhrjorgensen commentedon Aug 19, 2025
I got here with the same issue and reading that it magically fixed itself for others made me try to close and reopen the app - and then it was also magically fixed on my end..
Pingou commentedon Aug 28, 2025
Same problem, a restart helped, there must be some underlying bug though, can we reopen?
jpancotti commentedon Feb 12, 2026
Fought this for an hour before finding this and restarting solved mine as well.
Do we have any idea if this is isolated to dev builds? I am concerned that alerts may be failing in production for whatever the same root cause is...
Don't resume the new context without an Activity after a reload on An…