Commit 67db89d
Add back receiveTouches on RCTEventEmitter with default implementation (#55850)
Summary:
Pull Request resolved: #55850
D91320248 removed `receiveTouches` from the `RCTEventEmitter` interface entirely.
This was too big of a breaking change — ecosystem libraries that implement
`RCTEventEmitter` or `RCTModernEventEmitter` and override `receiveTouches` would
fail to compile.
This brings back `receiveTouches` on `RCTEventEmitter` but with a default no-op
implementation, so existing implementers that override it continue to compile, and
new implementers don't need to provide one.
Changelog: [Android][Changed] Re-added `receiveTouches` to `RCTEventEmitter` with a default no-op implementation to avoid breaking ecosystem libraries
Reviewed By: cortinico
Differential Revision: D94903267
fbshipit-source-id: fd89da9714b02a72c6ff271375307f620f5d2e3d1 parent 1cd0387 commit 67db89d
2 files changed
Lines changed: 14 additions & 0 deletions
File tree
- packages/react-native/ReactAndroid
- api
- src/main/java/com/facebook/react/uimanager/events
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4794 | 4794 | | |
4795 | 4795 | | |
4796 | 4796 | | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
4797 | 4802 | | |
4798 | 4803 | | |
4799 | 4804 | | |
| |||
4805 | 4810 | | |
4806 | 4811 | | |
4807 | 4812 | | |
| 4813 | + | |
4808 | 4814 | | |
4809 | 4815 | | |
4810 | 4816 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
0 commit comments