eslint-plugin-react-native-a11y
Version:
React Native specific accessibility linting rules.
17 lines (14 loc) • 713 B
JavaScript
;
var _validProp = _interopRequireDefault(require("../factory/valid-prop"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @fileoverview Used to tell Talkback or Voiceover the state a UI Element is in
* @author Jen Luker
*
*/
// ----------------------------------------------------------------------------
// Rule Definition
// ----------------------------------------------------------------------------
var errorMessage = 'accessibilityStates must be one, both or neither of the defined values';
var validValues = ['selected', 'disabled', ''];
module.exports = (0, _validProp.default)('accessibilityStates', validValues, errorMessage);