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(iOS): expose testID from wrapping view component. #156

Conversation

asafkorem
Copy link
Contributor

Before this change, testID was exposed from the native sub component IOSCheckBoxNativeComponent.

However, this component does not expose the accessibility info (accessible, accessibilityRole, etc.), which is exposed in the parent RN component View.

Thus, retrieving this information on tests by the testID is not possible unless accessing the parent view.

Before this change, `testID` was exposed from the native sub component `IOSCheckBoxNativeComponent`.

However, this component does not expose the accessibility info (`accessible`, `accessibilityRole`, etc.), which is exposed in the parent RN component `View`.

Thus, retrieving this information on tests by the `testID` is not possible unless accessing the parent view.
@asafkorem asafkorem force-pushed the feature/ios/move-props-to-parent-view branch from 70d5914 to 73bb351 Compare February 24, 2022 09:09
@asafkorem
Copy link
Contributor Author

@nicholaslee119 this is highly important change in order to properly end-to-end test this component (from Detox for example).

Generally, the testID should be exposed from the same view where we expose the accessibility information of the view.

I would greatly appreciate if you can release a version soon with this fix 🙏🏼

@nicholaslee119
Copy link
Collaborator

@asafkorem thanks for your PR, it will be released in the next version.

@nicholaslee119 nicholaslee119 changed the base branch from master to develop February 24, 2022 09:46
Copy link
Collaborator

@nicholaslee119 nicholaslee119 left a comment

Choose a reason for hiding this comment

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

LGTM

@nicholaslee119 nicholaslee119 merged commit fc79d91 into react-native-checkbox:develop Feb 24, 2022
@asafkorem
Copy link
Contributor Author

Thanks @nicholaslee119!

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.

None yet

2 participants