Skip to content

Remove RNGH#6

Merged
marcuzgabriel merged 1 commit intomasterfrom
remove/rngh
Jul 31, 2022
Merged

Remove RNGH#6
marcuzgabriel merged 1 commit intomasterfrom
remove/rngh

Conversation

@marcuzgabriel
Copy link
Copy Markdown
Owner

Unfortunately a bug has been observed where the screen freezes when pressing / entering and returning to the overview. This bug is only on iOS.

I have tried everything to debug it. The conclusion is related software-mansion/react-native-reanimated#3331. The new gesture component GestureDetector do not handle on mount very well.

I had three possible solutions:

Reintroduce old working gesture handling solution
Combine old and new RNGH solution and add a prop useLatestRNGH to determine which one to use
Debug and figure out what is the problem
I started with solution 3, which is currently in place (previous version). I removed the defined 'worklet' approach which causes a bad warning as RNGH gets confused on what thread to use. But it worked. The debugging is pure guessing as there is no proper debugging information for worklets when working with the UI thread.

I tried to do solution 2 but it introduces ALOT of extra code and make readability and complexity ALOT more difficult.

*** The only viable solution is 1: remove latest RNGH2.0 and go back to reanimated useAnimatedGestureHandler and wait for RNGH to fix their GestureDetector ***

@marcuzgabriel marcuzgabriel merged commit e12b5eb into master Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant