Commit 74fdfd1
Remove deprecated Instance type aliases (Flow) (#57229)
Summary:
Pull Request resolved: #57229
Remove the deprecated `PublicScrollViewInstance` and `PublicModalInstance` type aliases, replacing all remaining usages with the canonical `ScrollViewInstance` and `ModalInstance` types.
NOTE: Existing equivalent types are **left alone** in the manual `.d.ts` sources (current TS API), as this is covered by the existing breaking migration notes for ref types under the Strict API.
**Changes**
- Delete `PublicScrollViewInstance` alias (ScrollView.js)
- Delete `PublicModalInstance` alias (Modal.js)
- Update `IntersectionObserverExplicitRootScroll.js` rn-tester example
Changelog:
[General][Removed] - **Strict TypeScript API**: Remove deprecated `PublicScrollViewInstance` and `PublicModalInstance` types. Use `ScrollViewInstance` and `ModalInstance` instead.
Reviewed By: cipolleschi
Differential Revision: D107268481
fbshipit-source-id: fbcd42378bf13919d5b14d5472f3c5ff4ffbbc9d1 parent 25f6810 commit 74fdfd1
3 files changed
Lines changed: 3 additions & 10 deletions
File tree
- packages
- react-native/Libraries
- Components/ScrollView
- Modal
- rn-tester/js/examples/IntersectionObserver
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
0 commit comments