Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing testID when createHandler props do not have one assigned #1910

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

virdesai
Copy link
Contributor

@virdesai virdesai commented Mar 2, 2022

Description

Fix related to my comment here about RNGestureHandlerButton with handlerType="NativeViewGestureHandler" having missing testIDs when they were previously provided and assigned. I believe the testID on the child being cloned within createHandler was being removed by the testID being set within the render function when one was not even passed in. Now it will only assign a testID as a prop on the cloned element if a testID was provided to the handler

@j-piasecki
Copy link
Member

Thank you ❤️ !

@j-piasecki j-piasecki merged commit 7ecb044 into software-mansion:main Mar 3, 2022
@virdesai virdesai deleted the fix/missing-testID branch March 3, 2022 10:39
@vishalnarkhede
Copy link

Thanks for fixing this @virdesai :)

@virdesai
Copy link
Contributor Author

Lol no problem @vishalnarkhede

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