Commit f7cd8c4
RN: Export
Summary:
Pull Request resolved: #55190
Makes `EventEmitter` (and the related `IEventEmitter` interface type) available as part of React Native's Public API.
This allows product logic using React Native to also leverage the same abstraction. Currently, code outside of React Native that wants to use `EventEmitter` must resort to deep imports (which is discouraged).
Changelog:
[General][Added] - Added `EventEmitter` to `react-native` exports.
Reviewed By: huntie
Differential Revision: D90786781
fbshipit-source-id: ad06124c96fcba35b8b5fc8170bfb15c17884a0aEventEmitter in Public API (#55190)1 parent 6241e61 commit f7cd8c4
3 files changed
Lines changed: 40 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
1865 | 1865 | | |
1866 | 1866 | | |
1867 | 1867 | | |
1868 | | - | |
| 1868 | + | |
1869 | 1869 | | |
1870 | 1870 | | |
1871 | 1871 | | |
| |||
2229 | 2229 | | |
2230 | 2230 | | |
2231 | 2231 | | |
2232 | | - | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
2233 | 2254 | | |
2234 | 2255 | | |
2235 | 2256 | | |
| |||
5988 | 6009 | | |
5989 | 6010 | | |
5990 | 6011 | | |
5991 | | - | |
| 6012 | + | |
5992 | 6013 | | |
5993 | 6014 | | |
5994 | 6015 | | |
5995 | 6016 | | |
5996 | 6017 | | |
5997 | 6018 | | |
5998 | 6019 | | |
5999 | | - | |
| 6020 | + | |
6000 | 6021 | | |
6001 | 6022 | | |
6002 | 6023 | | |
| |||
6016 | 6037 | | |
6017 | 6038 | | |
6018 | 6039 | | |
| 6040 | + | |
6019 | 6041 | | |
6020 | 6042 | | |
6021 | 6043 | | |
| |||
6029 | 6051 | | |
6030 | 6052 | | |
6031 | 6053 | | |
| 6054 | + | |
6032 | 6055 | | |
6033 | 6056 | | |
6034 | 6057 | | |
| |||
6074 | 6097 | | |
6075 | 6098 | | |
6076 | 6099 | | |
6077 | | - | |
| 6100 | + | |
6078 | 6101 | | |
6079 | 6102 | | |
6080 | 6103 | | |
| |||
6090 | 6113 | | |
6091 | 6114 | | |
6092 | 6115 | | |
6093 | | - | |
| 6116 | + | |
6094 | 6117 | | |
6095 | 6118 | | |
6096 | 6119 | | |
6097 | | - | |
| 6120 | + | |
6098 | 6121 | | |
6099 | 6122 | | |
6100 | 6123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | 323 | | |
325 | 324 | | |
326 | 325 | | |
| |||
463 | 462 | | |
464 | 463 | | |
465 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
| |||
0 commit comments