mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 09:12:02 +00:00
d63762194d
Summary:Fixes bug https://github.com/facebook/react-native/issues/5604 ("Redscreen error when TouchRelease triggered on a component no longer in the tree") ( maybe not ideally ) This issue is triggered by the following: A Touch event on a component ( Keep Pressing ) A state/props update removes the component from the tree and render is performed A Touch Release event. ( When you release the press on the component no longer there ) This fix adds an early return to the signal handling code if a RESPONDER_RELEASE signal happens when the responder has disappeared Closes https://github.com/facebook/react-native/pull/5637 Differential Revision: D3053729 Pulled By: sahrens fb-gh-sync-id: 21a2a303d8921654607eaab824ef28fc16df9500 shipit-source-id: 21a2a303d8921654607eaab824ef28fc16df9500