Animated.View
breaks RN's Touchables when inside forwardRef
's render function
#6744
Labels
Missing repro
This issue need minimum repro scenario
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Description
When
Animated.View
is either the root element, or an n+1 child (2nd, 3rd) of the root in a component created usingforwardRef
, the very first native interactive element is disabled, no longer callingonPress
callbacks.derived from this issue: software-mansion/react-native-gesture-handler#3223
Screen.Recording.2024-11-21.at.17.46.28.mov
Screen.Recording.2024-11-21.at.17.46.45.mov
Reproduction code
Expected behaviour example
Invalid behaviour, left element non-interactive, `Animated.View` wrapping the right element
Invalid behaviour, left element non-interactive, `Animated.View` is the root element
Expected behaviour, `Animated.View` wrapping the left element
Steps to reproduce
rngh
or therea
example apps, in place of the empty exampleSnack or a link to a repository
https://github.com/software-mansion/react-native-gesture-handler/blob/main/example/src/empty/EmptyExample.tsx
Reanimated version
3.16.2
React Native version
0.74.1
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
Real device, emulator
Device model
Xiaomi POCO X3 Pro, Pixel 3a emulator
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: