From 3451f219c77a3205f59b1fbc51308e3d3b0d9846 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Fri, 22 Mar 2024 15:54:37 -0700 Subject: [PATCH] Fix hidden type error in react-native ahead of next flow release Summary: Changelog: [Internal] Differential Revision: D55264363 --- packages/rn-tester/NativeComponentExample/js/MyNativeView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rn-tester/NativeComponentExample/js/MyNativeView.js b/packages/rn-tester/NativeComponentExample/js/MyNativeView.js index 5d992c04f4fd..d9d166abeba1 100644 --- a/packages/rn-tester/NativeComponentExample/js/MyNativeView.js +++ b/packages/rn-tester/NativeComponentExample/js/MyNativeView.js @@ -88,7 +88,7 @@ function getTextFor(measureStruct: MeasureStruct): string { // This is an example component that migrates to use the new architecture. export default function MyNativeView(props: {}): React.Node { - const containerRef = useRef(null); + const containerRef = useRef | null>(null); const ref = useRef | null>(null); const legacyRef = useRef | null>(null); const [opacity, setOpacity] = useState(1.0);