Animated: Remove Erroneous AnimatedProps Check

Summary:
This check will never pass because `this._propsAnimated` contains an instance of `AnimatedProps`, but `nextProps` contains an object literal containing the new props.

Changelog:
[Internal]

Reviewed By: JoshuaGross, TheSavior, kacieb

Differential Revision: D28271627

fbshipit-source-id: c563eec1eeaee5eb84bb01525313b46db502225a
This commit is contained in:
Tim Yung
2021-05-10 17:02:59 -07:00
committed by Facebook GitHub Bot
parent faf4550047
commit 0bbb51e8c2
@@ -174,10 +174,6 @@ function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
_attachProps(nextProps) {
const oldPropsAnimated = this._propsAnimated;
if (nextProps === oldPropsAnimated) {
return;
}
this._propsAnimated = new AnimatedProps(
nextProps,
this._animatedPropsCallback,