[Reanimated] The view with tag N gets view-flattened on Android. To disable view-flattening, set collapsable={false}
on this component.
#5006
Labels
Missing info
The user didn't precise the problem enough
Missing repro
This issue need minimum repro scenario
Needs review
Issue is ready to be reviewed by a maintainer
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Description
I have a component that uses the measure function from reanimated via useAnimatedRef. This works very well. My components (inputs) are inside a scrollview and when I navigate back or to another screen I get this warn:
[Reanimated] The view with tag 21089 gets view-flattened on Android. To disable view-flattening, set collapsable={false} on this component.
This warning appears when the keyboard is visible. I saw this solution #3188 (comment) but it didn't help. Or am I missing something? Do all my components inside the ScrollView need to be animated? I set collapsable false for ScrollView
Component:
Steps to reproduce
Snack or a link to a repository
NA
Reanimated version
^3.4.2
React Native version
0.72.4
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
Expo managed workflow
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Pixel 4 API 31
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: