Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove all listeners of AnimatedNode when detached
Summary: changelog: [internal] Removing listener on detached node leads to a red box, if the said node is `DiffClampAnimatedNode`. This is because calling `AnimatedNode.__getNativeTag()` makes native module call and creates node in native. This node is not completely initialised and red boxes because `[RCTAnimatedNode parentNodes]` is nil when it shouldn't be. The fix is make sure all listeners are removed before node is destroyed. It is logically correct thing to do. The fix is global, for all components using `DiffClampAnimatedNode`. Reviewed By: yungsters Differential Revision: D40381895 fbshipit-source-id: 4f558faf8101b70552f30e6360998e902aacbc83
- Loading branch information