dillon1000/react
Commit
Browse files Revise ResponderTouchHistoryStore Error Handling (#7143)
Touch behavior is inconsistent across different platforms, and ResponderTouchHistoryStore currently fatals when assumptions are broken. In addition, the behavior differs between development and production. This pull request does a few things to make ResponderTouchHistoryStore easier to deal with: Adds Flow to keep the TouchEvent, Touch, and TouchRecord types straight. Changes behavior to be consistent across environments. This means either always throwing or never throwing (and making use of warning and console.error as appropriate). When an orphaned move or end event is received, print debug information and ignore it instead of crashing and burning.
Changed paths2 files
First-parent comparisonsrc/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js ModifiedM src/renderers/shared/stack/event/eventPlugins/ResponderTouchHistoryStore.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…