Skip to content

Commit

Permalink
fix(hippy-react): drop Object.entries() for lower iOS compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
xuqingkuang authored and tsangint committed Apr 10, 2020
1 parent a3aa0b8 commit d76b074
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hippy-react/src/modules/animation.ts
Expand Up @@ -251,7 +251,8 @@ class Animation implements Animation {
throw new TypeError('Update animation mode not supported');
}

Object.entries(newConfig).forEach(([prop, value]) => {
(Object.keys(newConfig) as (keyof AnimationOptions)[]).forEach((prop) => {
const value = newConfig[prop];
if (prop === 'startValue') {
let startValue: AnimationValue = 0;
if (newConfig.startValue instanceof Animation) {
Expand Down

0 comments on commit d76b074

Please sign in to comment.