Skip to content

Conversation

@j-piasecki
Copy link
Member

Description

Gesture Handler relied on Touchable.TOUCH_TARGET_DEBUG to render the debug view of the touchables, but this property was removed in facebook/react-native@ef765d4. Touchables from React Native have been using PressabilityDebugView. This PR replaces Touchable.renderDebugView and Touchable.TOUCH_TARGET_DEBUG with PressabilityDebugView (it handles rendering only when inspector is enabled under the hood).

Fixes #2100.

Test plan

Tested on the Example app and on a separate app using React Native 0.63

@j-piasecki j-piasecki merged commit c47c7e0 into main Jun 13, 2022
@j-piasecki j-piasecki deleted the @jpiasecki/fix-touchable-inspector branch June 13, 2022 19:56
@taylorkline
Copy link

Thank you @kmagiera and @j-piasecki !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Touchable Inspector is not working with React Native Gesture Handler buttons

4 participants