From 93243b5fc581c45e06828c03d2053b06408ea68f Mon Sep 17 00:00:00 2001 From: Shawn Dempsey Date: Wed, 18 Jan 2023 14:24:33 -0800 Subject: [PATCH 1/3] Fix NativeComponentExample not rendering on Fabric --- .../NativeComponentExample/js/MyNativeView.js | 71 +++++++------------ 1 file changed, 26 insertions(+), 45 deletions(-) diff --git a/packages/rn-tester/NativeComponentExample/js/MyNativeView.js b/packages/rn-tester/NativeComponentExample/js/MyNativeView.js index 49cb3689eab522..373e6d22f856ad 100644 --- a/packages/rn-tester/NativeComponentExample/js/MyNativeView.js +++ b/packages/rn-tester/NativeComponentExample/js/MyNativeView.js @@ -29,53 +29,34 @@ const colors = [ export default function MyNativeView(props: {}): React.Node { const ref = useRef | null>(null); const [opacity, setOpacity] = useState(1.0); - // [macOS Use this "hack" to only render this example if Fabric is enabled and allow CI to pass - // Fabric Detection - const isFabric = - !!( - // An internal transform mangles variables with leading "_" as private. - // $FlowFixMe - ref._internalInstanceHandle?.stateNode?.canonical - ); - if (isFabric) { - return null; - } - // macOS] - - // [macOS return ( - {isFabric && ( - <> - -