Commit b4fcc7d
Remove deprecated InteractionManager
Summary:
`InteractionManager` has been marked as deprecated and has emitted a runtime warning on first access for several releases. Remove it from the public API.
Accessing `InteractionManager` from `react-native` now throws a `__DEV__` invariant with a migration message pointing at `requestIdleCallback`, mirroring the pattern already used for other previously-removed legacy modules.
The recommended migration is to refactor long tasks into smaller chunks and use `requestIdleCallback` / `cancelIdleCallback` instead of `runAfterInteractions` / `handle.cancel()`.
Changes:
- Remove the lazy getter from `index.js` and replace it with a `__DEV__` invariant stub.
- Remove the `Handle`, `PromiseTask`, `SimpleTask` type re-exports and the `InteractionManager` default re-export from `index.js.flow`.
- Delete `Libraries/Interaction/InteractionManager.js` and its `.d.ts`. The parent `Libraries/Interaction/` directory is kept — `PanResponder`, `TouchHistoryMath`, and `FrameRateLogger` continue to live there.
Changelog:
[General][Removed] - Remove deprecated `InteractionManager` (use `requestIdleCallback` instead)
Differential Revision: D1066409581 parent a88df17 commit b4fcc7d
5 files changed
Lines changed: 20 additions & 335 deletions
File tree
- packages/react-native
- Libraries/Interaction
Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 0 additions & 189 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | 252 | | |
277 | 253 | | |
278 | 254 | | |
| |||
2476 | 2452 | | |
2477 | 2453 | | |
2478 | 2454 | | |
2479 | | - | |
2480 | 2455 | | |
2481 | 2456 | | |
2482 | 2457 | | |
| |||
2757 | 2732 | | |
2758 | 2733 | | |
2759 | 2734 | | |
2760 | | - | |
2761 | 2735 | | |
2762 | 2736 | | |
2763 | 2737 | | |
| |||
3876 | 3850 | | |
3877 | 3851 | | |
3878 | 3852 | | |
3879 | | - | |
3880 | | - | |
3881 | | - | |
3882 | | - | |
3883 | 3853 | | |
3884 | 3854 | | |
3885 | 3855 | | |
| |||
4715 | 4685 | | |
4716 | 4686 | | |
4717 | 4687 | | |
4718 | | - | |
4719 | | - | |
4720 | | - | |
4721 | | - | |
4722 | 4688 | | |
4723 | 4689 | | |
4724 | 4690 | | |
| |||
5056 | 5022 | | |
5057 | 5023 | | |
5058 | 5024 | | |
5059 | | - | |
5060 | 5025 | | |
5061 | 5026 | | |
5062 | 5027 | | |
| |||
6061 | 6026 | | |
6062 | 6027 | | |
6063 | 6028 | | |
6064 | | - | |
6065 | 6029 | | |
6066 | 6030 | | |
6067 | 6031 | | |
| |||
6089 | 6053 | | |
6090 | 6054 | | |
6091 | 6055 | | |
6092 | | - | |
6093 | 6056 | | |
6094 | 6057 | | |
6095 | 6058 | | |
| |||
6167 | 6130 | | |
6168 | 6131 | | |
6169 | 6132 | | |
6170 | | - | |
6171 | 6133 | | |
6172 | 6134 | | |
6173 | 6135 | | |
| |||
6213 | 6175 | | |
6214 | 6176 | | |
6215 | 6177 | | |
6216 | | - | |
6217 | 6178 | | |
6218 | 6179 | | |
6219 | 6180 | | |
| |||
0 commit comments