Skip to content

Remove deprecated Instance type aliases (Flow)#57053

Open
huntie wants to merge 1 commit into
facebook:mainfrom
huntie:export-D107268481
Open

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

Conversation

@huntie
Copy link
Copy Markdown
Member

@huntie huntie commented Jun 2, 2026

Summary:
Remove the deprecated PublicScrollViewInstance and PublicModalInstance type aliases, replacing all remaining usages with the canonical ScrollViewElement and ModalElement 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: [Internal]

Differential Revision: D107268481

Summary:
Remove the deprecated `PublicScrollViewInstance` and `PublicModalInstance` type aliases, replacing all remaining usages with the canonical `ScrollViewElement` and `ModalElement` 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: [Internal]

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 2, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Jun 2, 2026

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

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. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant