feat:when cancel Animation,sync the properties from native
This commit is contained in:
@@ -956,7 +956,11 @@ public abstract class ViewNode<T extends View> extends DoricContextHolder {
|
||||
if (animator != null) {
|
||||
animator.cancel();
|
||||
}
|
||||
promise.resolve();
|
||||
JSONBuilder jsonBuilder = new JSONBuilder();
|
||||
for (String key : animatedKeys) {
|
||||
jsonBuilder.put(key, getAnimatedValue(key));
|
||||
}
|
||||
promise.resolve(jsonBuilder.toValue());
|
||||
}
|
||||
|
||||
private Animator parseAnimator(JSValue value) {
|
||||
|
Reference in New Issue
Block a user