Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Map aria-* props to equivalent accessibility props #8

Closed
intergalacticspacehighway opened this issue Feb 13, 2021 · 0 comments
Closed

Comments

@intergalacticspacehighway
Copy link
Contributor

React native web's 0.15 version mentions that the undocumented support for aria-* props will be deprecated in the future.

In the current approach for React native aria, we use React Aria's hooks for the web which returns aria-* props.
We'll have to create an aria-* to accessibility* mapping to support the future versions of rn-web.
e.g. aria-pressed returned from React Aria will be mapped to accessibilityPressed.
Complete documentation of mappings - https://necolas.github.io/react-native-web/docs/accessibility/

Todo - Create a mapping function that maps aria-* attributes returned from react aria to accessibility* props.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant