-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
BackgroundColor animates for no reason #47011
Comments
@bartlomiejbloniarz What according to you should be an expected behaviour? It changes colour smoothly. |
@shubhamguptadream11 It should change instantaneously, as there is no animation being used. |
Has this regressed since 0.75? Asking as there has been ongoing work on Backgrounds recently (cc @NickGerleman ) Also does this reproduces on both Android & iOS? |
Yes, it worked fine on the previous version (I think this bug was also present in some older version, but was quickly fixed). It only reproduces on iOS in both debug and production builds on the New Architecture. |
So is this New Architecture only?
Do you confirm that this regresses in 0.76 so that it was working in 0.75 iOS NewArch? |
yes
yes |
@bartlomiejbloniarz @cortinico Hi, I made a PR #47064 to fix this issue. |
Description
When changing the
backgroundColor
of aFlatList
item, there is an animation between these colors. The bug is reproducible both on the 0.76 RCs and main.Steps to reproduce
App.js
code to RNTestertoggle theme
React Native Version
0.76.0-rc.4, main
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/Tg8ResSSqSuiNHOg3iCq5
Screenshots and Videos
Screen.Recording.2024-10-14.at.13.11.00.mov
The text was updated successfully, but these errors were encountered: