FormidableLabs / eslint-plugin-react-native-a11y

React Native specific accessibility linting rules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verify that accessibilityTraits values are valid

jevakallio opened this issue · comments

@jevakallio should we expand this issue to verify that accessibilityComponentType values are valid (one of either 'none', 'button', 'radiobutton_checked' or 'radiobutton_unchecked') as it's the android version of accessibilityTraits? or should that be a separate issue?

cc: @knitcodemonkey

Let's split this out to a separate issue and a separate rule.

I imagine the implementation will be mostly the same, but I can also think of cases where someone may want to check for one and not the other (e.g. app only supports one platform).

Cool, should have a branch ready to PR for this issue then