Skip to content

Commit

Permalink
RN: Remove String Refs from NativeMethods (TS) (#46734)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #46734

The TypeScript definition for `NativeMethods` defined a `refs` property for referencing component instances by string refs.

String refs are deprecated and support is being formally dropped in React 19.

This removes the obsolete type definition.

Changelog:
[General][Removed] - Removed `refs` property from `NativeMethods` TypeScript definition.

Reviewed By: NickGerleman

Differential Revision: D63640881

fbshipit-source-id: 82148ac91bd44d63da9a41b1d1dcebb7ca32a5bd
  • Loading branch information
yungsters authored and facebook-github-bot committed Sep 30, 2024
1 parent 86cac68 commit 223e98c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/react-native/types/public/ReactNativeTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ export interface NativeMethods {
* Removes focus from an input or view. This is the opposite of `focus()`.
*/
blur(): void;

refs: {
[key: string]: React.Component<any, any>;
};
}

/**
Expand Down

0 comments on commit 223e98c

Please sign in to comment.