-
Notifications
You must be signed in to change notification settings - Fork 274
feat: byA11yState matcher #260
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
Conversation
@@ -0,0 +1,40 @@ | |||
// @flow | |||
|
|||
export type A11yRole = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a reference link? https://reactnative.dev/docs/accessibility#accessibilityrole-ios-android
Ideally we could import directly from react-native
, but I'm not sure if it's exported and if it would be backward compatible with older RN versions. This applies to TS as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍. Flow passes locally. A few small adjustments and I think we can merge it
Co-Authored-By: Michał Pierzchała <thymikee@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make a followup to the docs now :)
Summary
Introduction of
byA11yState
matcher and improvement of types.Test plan
Added UT and Typescript tests