mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
1a4fa92b25
commit
5fb67b0fb2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user