{"id":24836842,"url":"https://github.com/sjwall/react-native-aria-description","last_synced_at":"2026-02-23T04:04:34.038Z","repository":{"id":273783840,"uuid":"920575350","full_name":"sjwall/react-native-aria-description","owner":"sjwall","description":"Higher-Order Component to map aria-description to accessibilityHint, with web compatibility","archived":false,"fork":false,"pushed_at":"2025-01-24T15:56:00.000Z","size":216,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T05:01:36.446Z","etag":null,"topics":["aria","aria-describedby","aria-description","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjwall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"sjwall"}},"created_at":"2025-01-22T11:55:29.000Z","updated_at":"2025-01-24T15:56:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0bddc46-beca-4f56-bfd8-70fd0e67b741","html_url":"https://github.com/sjwall/react-native-aria-description","commit_stats":null,"previous_names":["sjwall/react-native-aria-description"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sjwall/react-native-aria-description","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-aria-description","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-aria-description/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-aria-description/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-aria-description/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjwall","download_url":"https://codeload.github.com/sjwall/react-native-aria-description/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjwall%2Freact-native-aria-description/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279468963,"owners_count":26175570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-18T02:00:06.492Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aria","aria-describedby","aria-description","react-native"],"created_at":"2025-01-31T05:43:57.505Z","updated_at":"2025-10-18T05:08:35.861Z","avatar_url":"https://github.com/sjwall.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sjwall"],"categories":[],"sub_categories":[],"readme":"# react-native-aria-description\n\n\u003ch3 align=\"center\"\u003e\n  Cross-platform aria-description.\n\u003c/h3\u003e\n\n[![npm version](https://badge.fury.io/js/react-native-aria-description.svg)][npm]\n[![npm downloads](https://img.shields.io/npm/dw/react-native-aria-description?logo=npm\u0026label=NPM%20downloads\u0026cacheSeconds=3600)][npm]\n[![GitHub license](https://img.shields.io/github/license/sjwall/react-native-aria-description)][license]\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)][pr]\n\nMaps [aria-description](https://w3c.github.io/aria/#aria-description) to [accessibilityHint](https://reactnative.dev/docs/accessibility#accessibilityhint) on native and on web polyfills with [aria-describedby](https://w3c.github.io/aria/#aria-describedby) to link to a hidden `\u003cp\u003e` containing the description.\n\nIf you pass `aria-describedby` on web as a prop it won't override it.\n\n## Installing\n\nTo install react-native-aria-description:\n\n```bash\nnpm install react-native-aria-description\n```\n\n## Using\n\nWrap your component with `withAriaDescription`:\n\n```diff\nimport {View, Text, Button} from 'react-native'\n+import {withAriaDescription} from 'react-native-aria-description'\n+\n+const CustomButton = withAriaDescription(Button, {web: {useEffect: true}})\n\nexport default function App() {\n  return (\n    \u003cView\u003e\n      \u003cText\u003eOpen up App.tsx to start working on your app!\u003c/Text\u003e\n-      \u003cButton\n+      \u003cCustomButton\n        title=\"Press me\"\n-        accessibilityHint=\"Pressing this button will print a statement in the console.\"\n+        aria-description=\"Pressing this button will print a statement in the console.\"\n        onPress={() =\u003e console.log('button has been pressed')}\n      /\u003e\n    \u003c/View\u003e\n  )\n}\n```\n\n`{web: {useEffect: true}}` is required on components that don't propagate the props into the web element.\n\nIf you want the web element to use `aria-description` instead of the `aria-describedby` polyfill then call with `false`: `withAriaDescription(Button, {web: {replaceWithDescribedBy: false}})`.\n\n\u003c!-- Definitions --\u003e\n\n[license]: https://github.com/sjwall/react-native-aria-description/blob/main/LICENSE\n\n[npm]: https://www.npmjs.com/package/react-native-aria-description\n\n[pr]: http://makeapullrequest.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjwall%2Freact-native-aria-description","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjwall%2Freact-native-aria-description","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjwall%2Freact-native-aria-description/lists"}