diff --git a/Libraries/Inspector/DevtoolsOverlay.js b/Libraries/Inspector/DevtoolsOverlay.js index d1f08ff1fda..5cf03d3de0e 100644 --- a/Libraries/Inspector/DevtoolsOverlay.js +++ b/Libraries/Inspector/DevtoolsOverlay.js @@ -24,7 +24,6 @@ const getInspectorDataForViewAtPoint = require('./getInspectorDataForViewAtPoint const {useEffect, useState, useCallback, useRef} = React; const hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__; -const isFabric = global.nativeFabricUIManager != null; export default function DevtoolsOverlay({ inspectedView, @@ -182,7 +181,7 @@ export default function DevtoolsOverlay({ if (isInspecting) { const events = // Pointer events only work on fabric - isFabric && ReactNativeFeatureFlags.shouldEmitW3CPointerEvents + ReactNativeFeatureFlags.shouldEmitW3CPointerEvents() ? { onPointerMove, onPointerDown: onPointerMove,