software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

Redux Re render updates causing the pan gesture handler to loose focus and stops working. #3136

Closed sahad00 closed 2 weeks ago

sahad00 commented 1 month ago

Description

I am using a package react-native-kanban-board which uses Gesture Handler 2x , when I supply a redux state for render , and update the gesture loose its focus on next render . I am trying for so long couldn't resolve it

Steps to reproduce

Supply a redux state for a component which renders a element with Pan Gesture Handler

Snack or a link to a repository

https://github.com/Intechnity-com/react-native-kanban-board/issues/5

Gesture Handler version

^2.9.0

React Native version

0.75.0

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 1 month ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

m-bert commented 1 month ago

Hi @sahad00!

First of all, could you check if it works on latest version of Gesture Handler? 2.9.0 is quite old 😅

Also, could you prepare minimal reproduction? Preferably copy-pastable one.

sahad00 commented 1 month ago

@m-bert I will make a reproduction one in few mins