Nenhuma descrição

ViewAccessibility.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. * @flow strict
  9. */
  10. 'use strict';
  11. module.exports = {
  12. AccessibilityTraits: [
  13. 'none',
  14. 'button',
  15. 'link',
  16. 'header',
  17. 'search',
  18. 'image',
  19. 'selected',
  20. 'plays',
  21. 'key',
  22. 'text',
  23. 'summary',
  24. 'disabled',
  25. 'frequentUpdates',
  26. 'startsMedia',
  27. 'adjustable',
  28. 'allowsDirectInteraction',
  29. 'pageTurn',
  30. ],
  31. AccessibilityComponentTypes: [
  32. 'none',
  33. 'button',
  34. 'radiobutton_checked',
  35. 'radiobutton_unchecked',
  36. ],
  37. // This must be kept in sync with the AccessibilityRolesMask in RCTViewManager.m
  38. AccessibilityRoles: [
  39. 'none',
  40. 'button',
  41. 'link',
  42. 'search',
  43. 'image',
  44. 'keyboardkey',
  45. 'text',
  46. 'adjustable',
  47. 'imagebutton',
  48. 'header',
  49. 'summary',
  50. ],
  51. // This must be kept in sync with the AccessibilityStatesMask in RCTViewManager.m
  52. AccessibilityStates: ['selected', 'disabled'],
  53. };