mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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,
|
||||
|
||||
Reference in New Issue
Block a user