react-native/React/Modules
Adam Comella cfe003238a iOS: Introduce API for making screen reader announcements
Summary:
This change introduces some APIs that are useful for making announcements through the screen reader on iOS:
  - `announceForAccessibility`: The screen reader announces the string that is passed in.
  - `announcementFinished`: An event that fires when the screen reader has finished making an announcement.

You can already solve similar problems with RN Android using the `accessibilityLiveRegion` prop. Live regions are a different feature but they can be used to solve the same problem. This commit does not attempt to add live region support in RN iOS because Apple did not build live region support into iOS.

Verified that `announceForAccessibility` causes VoiceOver to announce the string when VoiceOver is enabled. Verified that `announcementFinished` fires with the appropriate data in the event object. Additionally, my team has been using this change in our app.

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

Differential Revision: D5137004

Pulled By: javache

fbshipit-source-id: b3c10f3dfc716430a16fcc98e1bb6fe52cabd6a5
2017-05-30 04:46:08 -07:00
..
RCTAccessibilityManager.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTAccessibilityManager.m iOS: Introduce API for making screen reader announcements 2017-05-30 04:46:08 -07:00
RCTAlertManager.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTAlertManager.m Add one more parameter(keyboardType) to AlertIOS.promot(). 2017-01-19 14:43:37 -08:00
RCTAppState.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTAppState.m iOS: Provide correct initial value for AppState.currentState 2016-07-12 23:28:22 -07:00
RCTAsyncLocalStorage.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTAsyncLocalStorage.m Enforcing semi-colon consistency between dev and release modes when calling RCTLog* 2016-11-16 07:28:32 -08:00
RCTClipboard.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTClipboard.m remove unused includes in fbobjc/Libraries 2017-02-19 18:33:49 -08:00
RCTDevSettings.h Merge RCTPackagerClient into RCTPackagerConnection 2017-05-05 08:49:28 -07:00
RCTDevSettings.mm Fix packager reload command not working 2017-05-15 10:30:36 -07:00
RCTDeviceInfo.h Introduce `DeviceInfo` as a new native module 2017-03-17 17:01:57 -07:00
RCTDeviceInfo.m Introduce `DeviceInfo` as a new native module 2017-03-17 17:01:57 -07:00
RCTEventEmitter.h Only start observing in requestPermissions() if not already observing 2017-04-19 11:30:36 -07:00
RCTEventEmitter.m Eagerly change the listeners count 2017-03-20 12:49:00 -07:00
RCTExceptionsManager.h Cleanup initialization of native modules in FBReactModule 2017-05-26 04:17:19 -07:00
RCTExceptionsManager.m Cleanup initialization of native modules in FBReactModule 2017-05-26 04:17:19 -07:00
RCTI18nManager.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTI18nManager.m Provide forceRTL for LTR language to test 2016-08-04 12:28:30 -07:00
RCTI18nUtil.h Provide forceRTL for LTR language to test 2016-08-04 12:28:30 -07:00
RCTI18nUtil.m enable RTL layout by default for all apps 2016-09-06 17:58:47 -07:00
RCTJSCSamplingProfiler.h Rename JSCSamplingProfiler to RCTJSCSamplingProfiler 2017-04-18 13:22:01 -07:00
RCTJSCSamplingProfiler.m Rename JSCSamplingProfiler to RCTJSCSamplingProfiler 2017-04-18 13:22:01 -07:00
RCTKeyboardObserver.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTKeyboardObserver.m Apple TV support 1: existing Objective C code should compile for tvOS 2016-09-27 06:28:33 -07:00
RCTRedBox.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTRedBox.m Show redbox window on JS errors for debug builds 2017-04-11 06:00:42 -07:00
RCTSourceCode.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTSourceCode.m Cleanup RCTSourceCode 2016-11-18 05:13:31 -08:00
RCTStatusBarManager.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTStatusBarManager.m Replacing all instances of [UIApplication sharedApplication] wi… 2017-04-01 03:34:41 -07:00
RCTTVNavigationEventEmitter.h Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
RCTTVNavigationEventEmitter.m Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
RCTTiming.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTTiming.m Fix order of timers called in the same frame 2017-04-03 18:48:48 -07:00
RCTUIManager.h Introducing `-[RCTUIManager shadowViewForReactTag:]` 2017-05-16 09:46:53 -07:00
RCTUIManager.m Introducing `-[RCTUIManager shadowViewForReactTag:]` 2017-05-16 09:46:53 -07:00
RCTUIManagerObserverCoordinator.h RCTUIManagerObserverCoordinator: new way to subscribe for granular notifications from UI Manager 2017-05-08 12:52:09 -07:00
RCTUIManagerObserverCoordinator.m RCTUIManagerObserverCoordinator: new way to subscribe for granular notifications from UI Manager 2017-05-08 12:52:09 -07:00