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
I have a NativeStackNavigator with 2 screens; on the first screen i have a button to navigate to the second screen; on the second screen, i am using the usePreventRemove hook to show a confirmation modal to the user when i tries to navigate to the previous screen;
press "go to second" button to navigate to second screen
press the back button to go back to previous screen
when the modal open, press cancel
repeat step 3
sometimes the app freezes when the modal appears.
the freeze occurs randomly, so repeating steps from 3 to 5 multiple times is sometimes needed. in order to enhance the chances of the bug to occur, it is useful to run the app on a physical device (iPhone) and repeat steps from 3 to 5 multiple times rapidly. I was able to reproduce the bug only on iOS
Hey! Thanks for opening the issue. Seems that this issue is related to react-native-screens library which is a dependency of React Navigation. Can you also post your issue in this repo so that it's notified to the maintainers of that library? This will help us fix the issue faster since it's upto the maintainers of that library to investigate it.
Current behavior
I have a NativeStackNavigator with 2 screens; on the first screen i have a button to navigate to the second screen; on the second screen, i am using the
usePreventRemove
hook to show a confirmation modal to the user when i tries to navigate to the previous screen;the bug occurs when:
the freeze occurs randomly, so repeating steps from 3 to 5 multiple times is sometimes needed. in order to enhance the chances of the bug to occur, it is useful to run the app on a physical device (iPhone) and repeat steps from 3 to 5 multiple times rapidly. I was able to reproduce the bug only on iOS
here it is an example of the bug behaviour:
RPReplay_Final1715264311.MOV
Expected behavior
the app does not freeze when the modal is shown
Reproduction
https://github.com/BadLice/modal-freeze-reproducer
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: