react-native/React
Adam Comella e40d1a1065 iOS: Introduce API for moving screen reader's focus
Summary:
This change introduces an API, `setAccessibilityFocus`, which moves the screen reader's focus to the passed in element. This causes VoiceOver to announce the element and draw a focus rectangle around it.

Similar functionality is already available in RN Android through the `sendAccessibilityEvent` method. Here's an example of what exists today in RN Android:

```
RCTUIManager.sendAccessibilityEvent(
  node,
  8 /* TYPE_VIEW_FOCUSED */);
```

Called `setAccessibilityFocus` on a couple of elements to verify that focus does indeed move when VoiceOver is enabled. Additionally, my team is using this change in our app.

Adam Comella
Microsoft Corp.
Closes https://github.com/facebook/react-native/pull/14169

Differential Revision: D5137002

Pulled By: javache

fbshipit-source-id: 466e8b187e625de7c0f0d36e0400327dcd8d192a
2017-05-26 03:19:21 -07:00
..
Base Fix data race on read/write _instance variable in ModuleData class 2017-05-24 13:01:00 -07:00
CxxBridge Provide sync vs async interface for bundle loading via parameter 2017-05-24 07:31:36 -07:00
CxxModule Improve systrace markers 2017-05-12 18:07:49 -07:00
CxxUtils Explicitly cast to (bool) where needed on objc with folly::dynamic 2017-04-18 15:36:20 -07:00
DevSupport Fix packager reload command not working 2017-05-15 10:30:36 -07:00
Executors Remove RCTBatchedBridge rule and all uses from the tree 2017-04-19 17:00:43 -07:00
Modules iOS: Introduce API for moving screen reader's focus 2017-05-26 03:19:21 -07:00
Profiler Fix memory leak in RN fbsystrace support 2017-05-15 03:47:15 -07:00
React.xcodeproj Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
ReactLegacy.xcodeproj Move packager launcher scripts outside of `packager/` 2017-05-23 16:17:09 -07:00
Views iOS: Avoid adding extra spaces to accessibility label 2017-05-24 23:15:41 -07:00
third-party.xcconfig More attempts to fix Travis CI runs 2017-05-10 04:32:54 -07:00