mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Support colors in AnimatedInterpolation on Android
Summary: Color support for AnimatedInterpolation was incomplete with native drivers, as only rgba type strings were supported. There was also an issue where color props instead a StyleAnimatedNode would never get applied. We were also potentially duplicating color parsing support, which is already centralized in `normalizeColor` / `processColor`. Changelog: [Android][Added] Enable AnimatedInterpolation to interpolate arbitrary color types. Reviewed By: mdvacca Differential Revision: D40571873 fbshipit-source-id: 41857ab0391279c5307bc31b855ea8fbcb4cccd8
This commit is contained in:
1 parent
b589123a3d
commit
e7dbfb2dbd
8 files changed
+242
-99
No files matched your search
@@ -15,7 +15,6 @@ import com.facebook.react.bridge.ReadableMap;
|
||||
* library.
|
||||
*/
|
||||
/*package*/ class ValueAnimatedNode extends AnimatedNode {
|
||||
/*package*/ Object mAnimatedObject = null;
|
||||
/*package*/ double mValue = Double.NaN;
|
||||
/*package*/ double mOffset = 0;
|
||||
private @Nullable AnimatedNodeValueListener mValueListener;
|
||||
@@ -37,7 +36,7 @@ import com.facebook.react.bridge.ReadableMap;
|
||||
}
|
||||
|
||||
public Object getAnimatedObject() {
|
||||
return mAnimatedObject;
|
||||
return null;
|
||||
}
|
||||
|
||||
public void flattenOffset() {
|
||||
|
||||
Reference in new issue
Block a user