Skip to content

Commit

Permalink
Revert "Fix case where new Animated.Value() is NaN on web" (#564)
Browse files Browse the repository at this point in the history
Reverts #548

undefined is not casting to null and that's the reason for the #563 regression.

rel: #561
  • Loading branch information
osdnk committed Jan 16, 2020
1 parent 9f4cc1f commit f0aec17
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/InternalAnimatedValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export default class InternalAnimatedValue extends AnimatedNode {
}

constructor(value, constant = false) {
if (value === undefined) {
value = null;
}
super({ type: 'value', value: sanitizeValue(value) });
this._startingValue = this._value = value;
this._animation = null;
Expand Down

0 comments on commit f0aec17

Please sign in to comment.