[ANDROID] - Jerks when an input is inside a scrollview with animations #6817
Labels
Platform: Android
This issue is specific to Android
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
I found a problem that I can not find a solution, I can not understand if it is an issue of the library or something of the operating system but my conclusions tell me that the problem may come from here.
I'll start explaining, it's super simple, it only happens in android and if some conditions are given as for example with certain animations and if the animations are active.
in simple words when there is an input with focus inside a scroll view that above the scrollview there is a component with animations and you want to scroll, it starts to make jerks without being able to hide the input inside the scroll, unless you scroll with 'a lot of force'.
Steps to reproduce
Here I leave some videos to understand the issue, to understand the component is simple, I will leave an example of how this conformed
in this first video you can see the animation that has the upper component and then the issue, when there is no input in focus the scroll is normal, no problem, but when there is an input with focus and the animation is not 100% done, for some reason I can not 'hide' the input by scrolling, from above or below.
Screen.Recording.2024-12-12.at.1.22.14.PM.mov
here I show again the issue
Screen.Recording.2024-12-12.at.1.22.44.PM.mov
and finally I show how the screen behaves when I select inputs that are below the scroll, when the animation reaches 100% of its range, the issue is no longer present.
Screen.Recording.2024-12-12.at.1.23.13.PM.mov
I will share the 3 files needed to understand this problem
Screen
AnimatedHeaderText
helpers (useCreateScrollAnimations)
now that we understand this, what could be happening, first it makes you think that it is a behavior of the operating system because it 'prevents' the input with focus to be hidden but then when the animation is disabled or reached 100% the scroll works normally
only happens with certain animations, disabling some of them also returns to work correctly, but it breaks the experience I'm looking for.
Snack or a link to a repository
https://snack.expo.dev/_2zsCHdC2NwFnjlMrEg4B
Reanimated version
3.16.5
React Native version
0.73.6
Platforms
Android
JavaScript runtime
None
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Debug app & production bundle
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: