Pre-suppress errors ahead of turn on partial react 19 ref-as-prop support

Summary:
`react.ref_as_prop=experimental.partial_support` will expose errors where a ref prop is passed to a function component without ref prop. This diff pre-suppresses the newly exposed errors.

Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D65686695

fbshipit-source-id: f241cc40f3ac414a2960dec60d9ba4633e5f93c0
This commit is contained in:
Sam Zhou 2024-11-08 13:52:27 -08:00 committed by Facebook GitHub Bot
parent 84bfeec9b8
commit cd9ece0553

View File

@ -1314,6 +1314,7 @@ function SetAccessibilityFocusExample(props: {}): React.Node {
return (
<View>
{/* $FlowFixMe[prop-missing] */}
<RNTesterText ref={myRef}>
SetAccessibilityFocus on native element. This should get focus after
clicking the button!