Skip to content

Remove deprecated Instance type aliases (Flow) (#57229)#57229

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D107268481
Closed

Remove deprecated Instance type aliases (Flow) (#57229)#57229
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D107268481

Conversation

@huntie

@huntie huntie commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary:

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D107268481.

Summary:
Pull Request resolved: react#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
@meta-codesync meta-codesync Bot changed the title Remove deprecated Instance type aliases (Flow) Remove deprecated Instance type aliases (Flow) (#57229) Jun 16, 2026
@huntie huntie force-pushed the export-D107268481 branch from d49dc85 to 6088128 Compare June 16, 2026 13:28
@meta-codesync meta-codesync Bot closed this in 74fdfd1 Jun 16, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

This pull request has been merged in 74fdfd1.

@huntie huntie deleted the export-D107268481 branch June 16, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant