Skip to content

Commit 44e89d9

Browse files
committed
fix flow check
1 parent 07d001f commit 44e89d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-native/Libraries/Components/Pressable

packages/react-native/Libraries/Components/Pressable/Pressable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ function Pressable({
334334
const eventHandlers = usePressability(config);
335335

336336
return (
337+
// $FlowFixMe[incompatible-type] blockNativeResponder is an internal prop, intentionally absent from public ViewProps
337338
<View
338339
{...restPropsWithDefaults}
339340
{...eventHandlers}
@@ -343,7 +344,6 @@ function Pressable({
343344
// Must be false when disabled so touches reach native ancestors. Cannot
344345
// guard this on the native side via _isJSResponder — it's set async and
345346
// races with touchesBegan on fast taps.
346-
// $FlowFixMe[incompatible-type] internal prop, intentionally absent from public ViewProps
347347
blockNativeResponder={disabled !== true && blockNativeResponder}>
348348
{typeof children === 'function' ? children({pressed}) : children}
349349
{__DEV__ ? <PressabilityDebugView color="red" hitSlop={hitSlop} /> : null}

0 commit comments

Comments
 (0)