Fix checking pointer event feature flag

Summary:
Changelog: [Internal]

The feature flag is a function not a boolean, flow didn't caught it..

Reviewed By: rbalicki2

Differential Revision: D41172775

fbshipit-source-id: b8a3365ab65049706b59e7e859f5f931ecab8360
This commit is contained in:
Tianyu Yao
2022-11-11 10:37:55 -08:00
committed by Facebook GitHub Bot
parent 1a4fa92b25
commit 5fb67b0fb2
+1 -2
View File
@@ -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,