Skip to content

Commit 5fb67b0

Browse files
tyao1facebook-github-bot
authored andcommitted
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
1 parent 1a4fa92 commit 5fb67b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Libraries/Inspector/DevtoolsOverlay.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const getInspectorDataForViewAtPoint = require('./getInspectorDataForViewAtPoint
2424
const {useEffect, useState, useCallback, useRef} = React;
2525

2626
const hook = window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
27-
const isFabric = global.nativeFabricUIManager != null;
2827

2928
export default function DevtoolsOverlay({
3029
inspectedView,
@@ -182,7 +181,7 @@ export default function DevtoolsOverlay({
182181
if (isInspecting) {
183182
const events =
184183
// Pointer events only work on fabric
185-
isFabric && ReactNativeFeatureFlags.shouldEmitW3CPointerEvents
184+
ReactNativeFeatureFlags.shouldEmitW3CPointerEvents()
186185
? {
187186
onPointerMove,
188187
onPointerDown: onPointerMove,

0 commit comments

Comments
 (0)