File tree Expand file tree Collapse file tree
packages/react-native/Libraries/Components/Pressable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -340,10 +340,9 @@ function Pressable({
340340 ref = { mergedRef }
341341 style = { typeof style === 'function' ? style ( { pressed} ) : style }
342342 collapsable = { false }
343- // Disabled when `disabled` to allow touches to reach native ancestors.
344- // Cannot use `_isJSResponder` on the native side because it is set via
345- // RCTExecuteOnMainQueue (async), so it may not be true yet when
346- // touchesBegan fires, causing a race condition on fast taps.
343+ // Must be false when disabled so touches reach native ancestors. Cannot
344+ // guard this on the native side via _isJSResponder — it's set async and
345+ // races with touchesBegan on fast taps.
347346 blockNativeResponder = { disabled !== true && blockNativeResponder } >
348347 { typeof children === 'function' ? children ( { pressed} ) : children }
349348 { __DEV__ ? < PressabilityDebugView color = "red" hitSlop = { hitSlop } /> : null }
You can’t perform that action at this time.
0 commit comments