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.

V3 is laggy on Android

See original GitHub issue

Description

I’m using React Navigation as my app navigation library, which at the time when I installed react-native-screens it was v2. So I decided to upgrade to the v3 to test it out and notices that there is a huge lag when navigating between screens, especially for those screens that contain huge listings. I decided to test out all the versions from 2.3.0 to 3.4.0, and the lag issue only happens on 3.0.0 & above.

One of the interesting parts I found out is that, during the process of testing, after I build & install the app (with v3) on Android, I decided to downgrade to v2 to prove my findings, and I forgot to stop my metro packager before I do a yarn install, surprisingly the lag issue fixed for some reason. This means the android native-side is using v3, while the JS-side of the react-native-screens is using v2, so I’m thinking maybe there is some implementation on the JS codebase in react-native-screens causing the lag issue.

Screenshots

Steps To Reproduce

Expected behavior

Actual behavior

Snack or minimal code example

Package versions

  • React: 17.0.1
  • React Native: 0.64.2
  • React Native Screens: 3.4.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
github-actions[bot]commented, Aug 3, 2021

Issue validator

The issue is invalid!

  • Section steps to reproduce seems to be empty(for label bug)
  • Section expected behavior seems to be empty(for label bug)
  • Section actual behavior seems to be empty(for label bug)
2reactions
chungweileong94commented, Jul 20, 2021

Thanks for all the information! Could you also post the video of how it behaves without react-native-screens switched on to compare the counter of dropped frames when navigating in the same way? The easiest way to do it will be providing detachInactiveScreens: false in here: https://github.com/chungweileong94/ReactNavigationLagDemo/blob/master/App.tsx#L113

Here’s the video without react-native-screens enabled.

https://user-images.githubusercontent.com/15154097/126345468-2da782ca-5389-4c38-ba7c-3a0b5d035b72.mp4

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 8 Ways to Fix YouTube Videos Lagging on Android
Top 8 Ways to Fix YouTube Videos Lagging on Android · 1. Force Stop and Reopen the YouTube App · 2. Clear Cache...
Read more >
Top 7 Ways to Fix YouTube App Lagging on Android and ...
1. Turn Off YouTube's Data Saving Feature (Android) · 2. Disable Battery Saver · 3. Delete All Downloads From YouTube App · 4....
Read more >
How to Fix YouTube Videos Lagging on Android - MakeUseOf
How to Fix YouTube Videos Lagging on Android · 1. Update the YouTube App · 2. Switch to Wi-Fi · 3. Turn Off...
Read more >
5 Common Causes to Laggy Android Devices (And How to Fix ...
10 Essential Tips To Increase Android's Performance · 1. Identify resource-hungry apps · 2. Put apps to sleep · 3. Keep your memory...
Read more >
Why Is My Android Slow? 3 Ways to Troubleshoot Your Device
If your Android is running slow, chances are the issue can be quickly fixed by clearing out excess data stored in your phone's...
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