Skip to content

Commit 4917f00

Browse files
committed
fix animatearray set
1 parent c0bfcfb commit 4917f00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/animated/AnimatedArray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export default class AnimatedArray extends AnimatedArrayWithChildren {
1212
}
1313

1414
setValue = value => {
15-
//if (Array.isArray(value)) {
15+
if (Array.isArray(value)) {
1616
if (value.length === this.payload.length)
1717
value.forEach((v, i) => this.payload[i].setValue(v))
18-
//} else this.payload.forEach((v, i) => this.payload[i].setValue(value))
18+
} else this.payload.forEach((v, i) => this.payload[i].setValue(value))
1919
}
2020
getValue = () => this.payload.map(v => v.getValue())
2121
interpolate = (config, arg) => new AnimatedInterpolation(this, config, arg)

0 commit comments

Comments
 (0)