iOS screen is frozen when swiping to previous page
See original GitHub issueDescription
Original issue: https://github.com/react-navigation/react-navigation/issues/9015
iOS screen is frozen when swiping to previous page when detachInactiveScreens
is true
.
https://reactnavigation.org/docs/stack-navigator/#detachpreviousscreen
Screenshots
NA
Steps To Reproduce
-
On iOS simulator, with react navigation stacks, try swipe back to previous screen when having a deep stack of screens (at least 3 or 4 levels deep)
-
App freezes completely
Expected behavior
It should not freeze and swipe back to previous screen
Actual behavior
It freezes completely
Snack or minimal code example
NA
Package versions
- React: 17.0.1
- React Native: 0.63.3
- React Native Screens: 2.15.0
- @react-navigation/native: 5.8.10
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:24 (11 by maintainers)
Top Results From Across the Web
Home Screen Freezes When I Swipe Down for Spotlight
Try restarting your iPhone by holding down the power button and swiping to off when the slider appears. If that does not work...
Read more >iPhone 14's: Screen is Frozen or Unresponsive? Can't Swipe ...
I show you how to fix a frozen or unresponsive screen where you cannot swipe nor restart/shut down the iPhone 14's ( iPhone...
Read more >(NEW) Fix Any iPhone Frozen/Stuck/Loop Screen ... - YouTube
You can also use UltFone iOS System Repair (https://bit.ly/3sBPqo2) to fix any iOS devices frozen / stuck /loop screen without data loss.
Read more >Fix an Android device that freezes or won't respond
If your phone is frozen with the screen on, hold down the power button for about 30 seconds to restart. Troubleshoot your phone....
Read more >Fix iPhone or iPad Frozen or Locked Up Screen - Technipages
Press and hold both the “Sleep/Wake” +”Volume Down” button for at least ten seconds. iPhone 6 and older. Other versions may require holding...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@WoLewicki The flow is, from a tab navigator, go to a screen outside (same stack of a tab navigator), bring app to background, get back and swipe. Expected behavior should navigate back normally but instead, the app will hang and crash. The app won’t crash if you go from one screen to another in the same stack
Sorry for the controversial information.
detachInactiveScreens={false} indeed works. The freeze is gone in one project. Since there is no-op to disable layout animations. We added this prop on iOS.
On other project I removed usage of layout animation since it’s used only in one place. Without it app works without freeze.
So I think it’s related to usage of layout animations of reanimated and rn-screens.