meliorence / meliorence/react-native-snap-carousel

App freezes when we go back from the screen which uses this library

Open
#874 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Is this a bug report, a feature request, or a question?

(Bug report)

Have you followed the required steps before opening a bug report?

(Check the step you've followed - put an x character between the square brackets ([]).)

Have you made sure that it wasn't a React Native bug?

(yes.)

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?

(The bug specific to iOS and iOS versions: 14.3)

Is the bug reproductible in a production environment (not a debug one)?

(Reproduce on both.)

Environment

Environment:
React: 17.0.2
React native: 0.65.1
react-native-snap-carousel: ^3.9.1
"@react-navigation/bottom-tabs": "^6.0.7",
"@react-navigation/native": "^6.0.4",
"@react-navigation/stack": "^6.0.9",

Target Platform:
iOS (14.3)

Expected Behavior

(The app should not freeze when going back to the tab screens)

Actual Behavior

(The app is freezing when going back from the screen which uses this library to the tab screens, when we remove this library app is working fine)

Reproducible Demo

I think it do not need the reproducible link

Steps to Reproduce

(Write your steps so that anyone can reproduce the issue in the Snack demo you provided.)

  1. Create a StackNavigator, inside create 2 screens 1 having tabNavigator the initial route and second will be a screen which uses this library.
  2. When we go back from second screen which uses this library it goes back but freezes the application.
  3. When we remove library it works fine.

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 freeze with the described StackNavigator and tabNavigator flow on iOS 14.3, using React Native 0.65.1 and react-native-snap-carousel 3.9.1; compare it with the library removed. Done means navigating back from the library screen to the tab screens no longer freezes the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, 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.