-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[change] Replace the ResponderEventPlugin
Replaces the ResponderEventPlugin with useResponderEvents hook. Also removes the event "normalization" of mouse, touch, and click events. These events are not part of the responder system and will no longer be modified from what ReactDOM dispatches. Fix #1568 Fix #1571 Fix #829 Fix #693
- Loading branch information
Showing
22 changed files
with
4,049 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...ges/react-native-web/src/exports/createElement/__tests__/__snapshots__/index-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,5 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`modules/createElement normalizes event.nativeEvent 1`] = ` | ||
Object { | ||
"_normalized": true, | ||
"bubbles": undefined, | ||
"cancelable": undefined, | ||
"changedTouches": Array [], | ||
"defaultPrevented": undefined, | ||
"identifier": undefined, | ||
"locationX": undefined, | ||
"locationY": undefined, | ||
"pageX": undefined, | ||
"pageY": undefined, | ||
"preventDefault": [Function], | ||
"stopImmediatePropagation": [Function], | ||
"stopPropagation": [Function], | ||
"target": undefined, | ||
"timestamp": 1496876171255, | ||
"touches": Array [], | ||
"type": undefined, | ||
"which": undefined, | ||
} | ||
`; | ||
|
||
exports[`modules/createElement renders different DOM elements 1`] = `<span />`; | ||
|
||
exports[`modules/createElement renders different DOM elements 2`] = `<main />`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.