software-mansion / software-mansion/react-native-screens

iOS screen is frozen when swiping to previous page

Open
#726 27 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform:ios
Dominant language
TypeScript
Stars
3.7k
Forks
714
Avg merge
2d 23h
Merged PRs (30d)
71

Description

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

  • React: 17.0.1
  • React Native: 0.63.3
  • React Native Screens: 2.15.0
  • @react-navigation/native: 5.8.10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the freeze on an iOS simulator with a deep React Navigation stack and detachInactiveScreens enabled, using the package versions listed in the issue. Read the detachPreviousScreen documentation and the react-native-screens navigation code involved in inactive screens; done means swiping back reliably reaches the previous screen without freezing.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.