-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation done in onScroll flickers on iOS #24826
Comments
I don't understand, is this a question? A bug? |
Bug..
…On Mon, May 13, 2019, 2:49 PM Lorenzo Sciandra ***@***.***> wrote:
I don't understand, is this a question? A bug?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#24826 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABT5Y5OMHPL5GGPAKWNSOZLPVEXCHANCNFSM4HMM4YPQ>
.
|
Ok then, can you create a repro (which means, a Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code. |
I added code in expo. https://snack.expo.io/ryuNM6U24 Please check header (blue color) animation. We can see, it is vibrating, if we observe closely. |
Expo is still relying on RN 0.57.x, we'd need a |
I tried with RN 0.59 in laptop. I am getting same issue in Android. |
I faced the same issue. At the version of 0.59.4 the animation was fluent, but at the version 0.59.8 the animation was "vibrating". I uploaded the "cleaned" version of my project so you can test it (I deleted every code from it except the animation). Here a gif about the animation with React Native version of 0.59.4: And here here the same project with React Native version of 0.59.8 The repo of the project: |
Interesting, thanks for providing the repro! Given that now we know that it must be a commit we cherry picked between .4 and .8, do you have any idea of which one it may be? |
Thanks @holospeed for investigating - then I guess it's a matter of understanding which one of the commits cherry picked created this lag... (btw AFAIK 0.59.7 is actually "not real", we had issues with releases, so I feel it's one of the commits from 0.59.8 so here -> https://github.com/facebook/react-native/releases/tag/v0.59.8 and I'd bet it's likely that this is connected to the root cause: 74d740c) |
I think this commit 39776a cause the issue. With the older version of React/Views/ScrollView/RCTScrollView.m the animations looks fluent. ( I just removed the added codes, brought back the deleted ones and the scroll animation looked fluent again) |
Oh, interesting - thanks for looking into this! cc @sahrens, this sounds like it may need to be looked at |
There was a bug in scroll throttling that caused this - should be fixed in c87de76 |
This issue can be closed via c87de76 |
Thanks for the info, I'll try to have that commit in the next 0.59 (since it's already in the 0.60 rc). |
Vibrating while scrolling.
React Native version:
React Native Environment Info:
System:
OS: Linux 4.13 Ubuntu 16.04.4 LTS (Xenial Xerus)
CPU: (4) x64 Intel(R) Core(TM) i3-2328M CPU @ 2.20GHz
Memory: 418.91 MB / 9.60 GB
Shell: 5.1.1 - /usr/bin/zsh
Binaries:
Node: 8.11.1 - /usr/bin/node
Yarn: 1.9.4 - /usr/bin/yarn
npm: 6.2.0 - /usr/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.0 AI-171.4443003
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.5 => 0.59.5
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native-rename: 2.2.2
react-native-run-android: 0.0.1
svg-to-react-native-cli: 0.0.3
Steps To Reproduce
Add translateY to FlatList animated component.
The text was updated successfully, but these errors were encountered: