Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
JSXOpeningElement: (node: JSXOpeningElement) => {
if (
isTouchable(node, context) &&
!hasProp(node.attributes, 'accessibilityRole') &&
!hasEveryProp(node.attributes, deprecatedProps) &&
getLiteralPropValue(getProp(node.attributes, 'accessible')) !== false
) {
context.report({
node,
message: errorMessage(elementType(node))
});
}
}
})