Skip to content

Commit 52ffa5d

Browse files
zjj010104facebook-github-bot
authored andcommitted
make AnimatedValueXY constructor input value immutable
Reviewed By: furdei Differential Revision: D6741521 fbshipit-source-id: e8401982fbb3c3d6cd4bcc2581358fd4a5de12f9
1 parent b5e19ad commit 52ffa5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Animated/src/nodes/AnimatedValueXY.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AnimatedValueXY extends AnimatedWithChildren {
3333
_listeners: {[key: string]: {x: string, y: string}};
3434

3535
constructor(
36-
valueIn?: ?{x: number | AnimatedValue, y: number | AnimatedValue},
36+
valueIn?: ?{+x: number | AnimatedValue, +y: number | AnimatedValue},
3737
) {
3838
super();
3939
const value: any = valueIn || {x: 0, y: 0}; // @flowfixme: shouldn't need `: any`

0 commit comments

Comments
 (0)