Skip to content

Conversation

@j-piasecki
Copy link
Member

Description

In the past, there were cases where I needed to debug how multiple gestures influenced each other. Identifying which gesture is which was a bit challenging when there were multiple of the same type.

I figured, since we already have a testID property on each gesture, we may as well propagate that to the native side. This should make debugging multi-gesture configs much easier.

This is only set in development builds; the only cost in production is one more pointer in the gesture object.

Test plan

Verify that the test ID is set correctly on the native side.

Copy link
Contributor

@m-bert m-bert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea. Also, I've noticed that createNativeWrapper does not pass testID to child, as it did before (probably I forgot to include it). Could you add it here? Or do we want to have that separated?

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.

3 participants