question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS screen is frozen when swiping to previous page

See original GitHub issue

Description

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

  1. 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)

  2. 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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
hunterbmtcommented, Jan 24, 2021

@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

1reaction
kesha-antonovcommented, Nov 8, 2022

My temp solution is to use detachInactiveScreens={false} on every Navigator if this does not work then it seems that the bug is not caused by the react-native-screens since it effectively disables usage of the library. Layout animations are still buggy so using it may lead to some problems.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found