mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix animating background colors in View (#47101)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47101 See https://github.com/facebook/react-native/issues/47011 borders do not have this problem because they call `removeAllAnimations` on the layer after changing it, which is what I am doing here Changelog: [iOS] [fixed] - Fixed bug where background colors would sometimes animate when changing on Views Reviewed By: cipolleschi Differential Revision: D64493968 fbshipit-source-id: cf81549f21b124b67c6e7647c6ae827bfe80a9cf
This commit is contained in:
committed by
Blake Friedman
parent
e56bd89eff
commit
defc0c8c21
+2
@@ -833,6 +833,8 @@ static RCTBorderStyle RCTBorderStyleFromBorderStyle(BorderStyle borderStyle)
|
||||
_backgroundColorLayer.mask = maskLayer;
|
||||
_backgroundColorLayer.cornerRadius = 0;
|
||||
}
|
||||
|
||||
[_backgroundColorLayer removeAllAnimations];
|
||||
}
|
||||
|
||||
// borders
|
||||
|
||||
Reference in New Issue
Block a user