From 0bbb51e8c2bcb664e3da7deebf6ff8ba6b508f78 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 10 May 2021 17:01:43 -0700 Subject: [PATCH] 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 --- Libraries/Animated/createAnimatedComponent.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Libraries/Animated/createAnimatedComponent.js b/Libraries/Animated/createAnimatedComponent.js index 02782c183cb..add2f211350 100644 --- a/Libraries/Animated/createAnimatedComponent.js +++ b/Libraries/Animated/createAnimatedComponent.js @@ -174,10 +174,6 @@ function createAnimatedComponent( _attachProps(nextProps) { const oldPropsAnimated = this._propsAnimated; - if (nextProps === oldPropsAnimated) { - return; - } - this._propsAnimated = new AnimatedProps( nextProps, this._animatedPropsCallback,