react-navigation / react-navigation/react-navigation

Navigation animation hangs while changing screen

Open
#9,166 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug package:stack
Dominant language
TypeScript
Stars
24.5k
Forks
5.1k
Avg merge
1d 5h
Merged PRs (30d)
18

Description

Current Behavior

Calling navigation.navigate("ExampleScreen") results in a hanging animation.
The navigation process finishes successful after about 5-10 seconds.

Simulator Screen Shot - iPhone 11 - 2020-12-22 at 17 00 20

I updated all packages to the latest version, but no adjustment helped.
This issue only happens on the first call of the navigate function. After that everything is smooth.

Expected Behavior

Navigation animation should be smooth.

How to reproduce

Created StackNavigator, places multiple Screens inside it.
Navigate between the Screens.

Your Environment

software version
iOS or Android iOS
@react-navigation/native 5.8.10
@react-navigation/stack 5.12.8
react-native-gesture-handler 1.9.0
react-native-safe-area-context 3.1.9
react-native-screens 0.6.2
react-native 0.63.3
expo 39.0.2
node 12.9.0
npm or yarn yarn 1.22.5

Contributor guide

Open the contributing guide

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 first-call delay with StackNavigator and navigation.navigate on the listed React Native, Expo, and navigation package versions. Trace the initial screen transition and compare it with later navigations; done means the first navigation animation is smooth and completes without the 5–10 second delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.