We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-native-a11y/has-valid-accessibility-state
When accessibilityState prop is defined as an inline object with destructured object within it, this rule crashes.
accessibilityState
accessibilityState={{ ...accessibilityState, disabled }}
Here's the error message:
I was able to find a workaround by defining it first as a separate variable and then passing it to prop.
const newAccessibilityState = { ...accessibilityState, disabled }; ... accessibilityState={newAccessibilityState}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When
accessibilityState
prop is defined as an inline object with destructured object within it, this rule crashes.accessibilityState={{ ...accessibilityState, disabled }}
Here's the error message:
I was able to find a workaround by defining it first as a separate variable and then passing it to prop.
The text was updated successfully, but these errors were encountered: