{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react-native/pulls/comments/33094444","id":33094444,"diff_hunk":"@@ -0,0 +1,75 @@\n+---\n+id: accessibility\n+title: Accessibility\n+layout: docs\n+category: Guides\n+permalink: docs/accessibility.html\n+next: nativemodulesios\n+---\n+\n+# Accessibility\n+\n+Accessibility on iOS encompasses many topics, but for many, accessibility is synonymous with VoiceOver, a technology available since iOS 3.0. It acts as a screen reader, allowing people with visual impairments to use their iOS devices. Click [here](https://developer.apple.com/accessibility/ios/) to learn more.\n+\n+## Making Accessible Apps\n+\n+### Coding Accessibly\n+\n+#### accessible\n+\n+When true, indicates that the view is an accessibility element. When a view is an accessibility element, it groups its children into a single selectable component. By default, all touchable elements are accessible.\n+\n+#### accessibilityLabel\n+\n+When a view is marked as accessible, it is a good practice to set an accessibilityLabel on the view, so that people who use VoiceOver know what element they have selected. VoiceOver will read this string when a user selects the associated element.\n+\n+To use, simply set the `accessibilityLabel` property to a custom string on your View:\n+\n+```javascript\n+<TouchableOpacity accessible={true} accessibilityLabel={'Tap me!'} onPress={this._onPress}>\n+  <View style={styles.button}>\n+    <Text style={styles.buttonText}>Press me!</Text>\n+  </View>\n+</TouchableOpacity>```\n+\n+In the above example, the `accessibilityLabel` on the TouchableOpacity element would default to \"Press me!\". The label is constructed by concatenating all Text node children separated by spaces.","path":"docs/Accessibility.md","position":35,"original_position":35,"commit_id":"b28766670df249d2151dbe244aad79722e2080d8","original_commit_id":"b28766670df249d2151dbe244aad79722e2080d8","user":{"login":"a2","id":241156,"avatar_url":"https://avatars.githubusercontent.com/u/241156?v=3","gravatar_id":"","url":"https://api.github.com/users/a2","html_url":"https://github.com/a2","followers_url":"https://api.github.com/users/a2/followers","following_url":"https://api.github.com/users/a2/following{/other_user}","gists_url":"https://api.github.com/users/a2/gists{/gist_id}","starred_url":"https://api.github.com/users/a2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2/subscriptions","organizations_url":"https://api.github.com/users/a2/orgs","repos_url":"https://api.github.com/users/a2/repos","events_url":"https://api.github.com/users/a2/events{/privacy}","received_events_url":"https://api.github.com/users/a2/received_events","type":"User","site_admin":false},"body":"Correct","created_at":"2015-06-23T21:24:48Z","updated_at":"2015-06-23T21:24:48Z","html_url":"https://github.com/facebook/react-native/pull/1726#discussion_r33094444","pull_request_url":"https://api.github.com/repos/facebook/react-native/pulls/1726","_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments/33094444"},"html":{"href":"https://github.com/facebook/react-native/pull/1726#discussion_r33094444"},"pull_request":{"href":"https://api.github.com/repos/facebook/react-native/pulls/1726"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/1726","id":38372522,"html_url":"https://github.com/facebook/react-native/pull/1726","diff_url":"https://github.com/facebook/react-native/pull/1726.diff","patch_url":"https://github.com/facebook/react-native/pull/1726.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/1726","number":1726,"state":"open","locked":false,"title":"Add docs page for accessibility support","user":{"login":"a2","id":241156,"avatar_url":"https://avatars.githubusercontent.com/u/241156?v=3","gravatar_id":"","url":"https://api.github.com/users/a2","html_url":"https://github.com/a2","followers_url":"https://api.github.com/users/a2/followers","following_url":"https://api.github.com/users/a2/following{/other_user}","gists_url":"https://api.github.com/users/a2/gists{/gist_id}","starred_url":"https://api.github.com/users/a2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2/subscriptions","organizations_url":"https://api.github.com/users/a2/orgs","repos_url":"https://api.github.com/users/a2/repos","events_url":"https://api.github.com/users/a2/events{/privacy}","received_events_url":"https://api.github.com/users/a2/received_events","type":"User","site_admin":false},"body":"After working with Georgiy on adding a bunch of accessibility support to React Native, it seemed fitting to add a docs page to illustrate how developers can leverage this new support in their React Native apps.","created_at":"2015-06-23T19:17:13Z","updated_at":"2015-06-23T21:24:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"220c454adc05e3d823fdb4ae7ee52df76902ba0d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/1726/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/1726/comments","review_comment_url":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/1726/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/b28766670df249d2151dbe244aad79722e2080d8","head":{"label":"a2:accessibility-docs","ref":"accessibility-docs","sha":"b28766670df249d2151dbe244aad79722e2080d8","user":{"login":"a2","id":241156,"avatar_url":"https://avatars.githubusercontent.com/u/241156?v=3","gravatar_id":"","url":"https://api.github.com/users/a2","html_url":"https://github.com/a2","followers_url":"https://api.github.com/users/a2/followers","following_url":"https://api.github.com/users/a2/following{/other_user}","gists_url":"https://api.github.com/users/a2/gists{/gist_id}","starred_url":"https://api.github.com/users/a2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2/subscriptions","organizations_url":"https://api.github.com/users/a2/orgs","repos_url":"https://api.github.com/users/a2/repos","events_url":"https://api.github.com/users/a2/events{/privacy}","received_events_url":"https://api.github.com/users/a2/received_events","type":"User","site_admin":false},"repo":{"id":33240428,"name":"react-native","full_name":"a2/react-native","owner":{"login":"a2","id":241156,"avatar_url":"https://avatars.githubusercontent.com/u/241156?v=3","gravatar_id":"","url":"https://api.github.com/users/a2","html_url":"https://github.com/a2","followers_url":"https://api.github.com/users/a2/followers","following_url":"https://api.github.com/users/a2/following{/other_user}","gists_url":"https://api.github.com/users/a2/gists{/gist_id}","starred_url":"https://api.github.com/users/a2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2/subscriptions","organizations_url":"https://api.github.com/users/a2/orgs","repos_url":"https://api.github.com/users/a2/repos","events_url":"https://api.github.com/users/a2/events{/privacy}","received_events_url":"https://api.github.com/users/a2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a2/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/a2/react-native","forks_url":"https://api.github.com/repos/a2/react-native/forks","keys_url":"https://api.github.com/repos/a2/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a2/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a2/react-native/teams","hooks_url":"https://api.github.com/repos/a2/react-native/hooks","issue_events_url":"https://api.github.com/repos/a2/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/a2/react-native/events","assignees_url":"https://api.github.com/repos/a2/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/a2/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/a2/react-native/tags","blobs_url":"https://api.github.com/repos/a2/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a2/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a2/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/a2/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a2/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/a2/react-native/languages","stargazers_url":"https://api.github.com/repos/a2/react-native/stargazers","contributors_url":"https://api.github.com/repos/a2/react-native/contributors","subscribers_url":"https://api.github.com/repos/a2/react-native/subscribers","subscription_url":"https://api.github.com/repos/a2/react-native/subscription","commits_url":"https://api.github.com/repos/a2/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/a2/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/a2/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/a2/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/a2/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/a2/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a2/react-native/merges","archive_url":"https://api.github.com/repos/a2/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a2/react-native/downloads","issues_url":"https://api.github.com/repos/a2/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/a2/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/a2/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/a2/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a2/react-native/labels{/name}","releases_url":"https://api.github.com/repos/a2/react-native/releases{/id}","created_at":"2015-04-01T10:01:56Z","updated_at":"2015-04-01T10:01:57Z","pushed_at":"2015-06-23T19:47:30Z","git_url":"git://github.com/a2/react-native.git","ssh_url":"git@github.com:a2/react-native.git","clone_url":"https://github.com/a2/react-native.git","svn_url":"https://github.com/a2/react-native","homepage":"http://facebook.github.io/react-native/","size":12768,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"4510b3f01f1f8faed5f030fb493bfae6fc24f318","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29028775,"name":"react-native","full_name":"facebook/react-native","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react-native","description":"A framework for building native apps with React.","fork":false,"url":"https://api.github.com/repos/facebook/react-native","forks_url":"https://api.github.com/repos/facebook/react-native/forks","keys_url":"https://api.github.com/repos/facebook/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react-native/teams","hooks_url":"https://api.github.com/repos/facebook/react-native/hooks","issue_events_url":"https://api.github.com/repos/facebook/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react-native/events","assignees_url":"https://api.github.com/repos/facebook/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react-native/tags","blobs_url":"https://api.github.com/repos/facebook/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react-native/languages","stargazers_url":"https://api.github.com/repos/facebook/react-native/stargazers","contributors_url":"https://api.github.com/repos/facebook/react-native/contributors","subscribers_url":"https://api.github.com/repos/facebook/react-native/subscribers","subscription_url":"https://api.github.com/repos/facebook/react-native/subscription","commits_url":"https://api.github.com/repos/facebook/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react-native/merges","archive_url":"https://api.github.com/repos/facebook/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react-native/downloads","issues_url":"https://api.github.com/repos/facebook/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react-native/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react-native/releases{/id}","created_at":"2015-01-09T18:10:16Z","updated_at":"2015-06-23T20:56:09Z","pushed_at":"2015-06-23T20:03:27Z","git_url":"git://github.com/facebook/react-native.git","ssh_url":"git@github.com:facebook/react-native.git","clone_url":"https://github.com/facebook/react-native.git","svn_url":"https://github.com/facebook/react-native","homepage":"http://facebook.github.io/react-native/","size":49851,"stargazers_count":15121,"watchers_count":15121,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1822,"mirror_url":null,"open_issues_count":356,"forks":1822,"open_issues":356,"watchers":15121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/1726"},"html":{"href":"https://github.com/facebook/react-native/pull/1726"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/1726"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/1726/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/1726/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react-native/pulls/1726/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/b28766670df249d2151dbe244aad79722e2080d8"}}}}