From cd9ece0553a820a1a3363ba76541a7dd4bcd8f16 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Fri, 8 Nov 2024 13:52:27 -0800 Subject: [PATCH] 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 --- .../rn-tester/js/examples/Accessibility/AccessibilityExample.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js b/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js index 7bbe1c5d8c9..49090ce8365 100644 --- a/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js +++ b/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js @@ -1314,6 +1314,7 @@ function SetAccessibilityFocusExample(props: {}): React.Node { return ( + {/* $FlowFixMe[prop-missing] */} SetAccessibilityFocus on native element. This should get focus after clicking the button!