react-native/Libraries
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
..
ART call toString on fontWeight else throws error if passed an integer 2017-05-25 01:34:53 -07:00
ActionSheetIOS Enable -Wimplicit-retain-self en sync warning config for all projects 2017-03-23 15:01:34 -07:00
AdSupport Update AdSupportIOS.js 2017-04-28 06:34:21 -07:00
Alert Export Alert's type ButtonsArray for external use 2017-03-06 12:44:47 -08:00
Animated Native Animated: Prevent views driven by native animated from being optimized away 2017-05-26 04:46:51 -07:00
AppState Fix the website build 2017-02-21 09:11:01 -08:00
BatchedBridge Add error message when calling sync methods from the Chrome debugger 2017-05-25 06:18:36 -07:00
BugReporting Patch up for future React Sync 2017-02-08 14:50:43 -08:00
CameraRoll Export an object instead of array for asset type 2017-05-04 21:49:45 -07:00
Components iOS: Introduce API for making screen reader announcements 2017-05-30 04:46:08 -07:00
Core make systrace look more like prod 2017-05-11 15:21:27 -07:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter Native Animated - Restore, reorganize and add new tests 2017-03-27 11:46:05 -07:00
Experimental Fix react-native function call arity errors 2017-05-18 16:55:55 -07:00
Geolocation Exposes requestAuthorization method. 2017-05-25 07:07:50 -07:00
Image Adding supported formats to Image component docs 2017-05-24 12:18:14 -07:00
Inspector Ran PropTypes -> prop-types codemod against Libraries/FBReactKit/js/react-native-github 2017-04-12 16:15:15 -07:00
Interaction Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
JSInspector Add Network agent 2016-11-02 12:29:15 -07:00
LayoutAnimation Fix prop-types warning in LayoutAnimation 2017-05-12 15:06:17 -07:00
Linking Add newly recommended method for RCTLinkingManager due to deprecation 2017-05-25 11:31:23 -07:00
LinkingIOS Add newly recommended method for RCTLinkingManager due to deprecation 2017-05-25 11:31:23 -07:00
Lists Render section footer in <SectionList> sections with no data 2017-05-25 10:30:55 -07:00
Modal Ran PropTypes -> prop-types codemod against Libraries/FBReactKit/js/react-native-github 2017-04-12 16:15:15 -07:00
NativeAnimation Native Animated - Support Animated.loop on iOS 2017-05-26 03:30:33 -07:00
Network XMLHttpRequest withCredentials defaults to "true" 2017-05-25 11:01:14 -07:00
Performance Clean up unused metrics 2017-05-09 13:30:26 -07:00
PermissionsAndroid Include Create React Native App in Getting Started 2017-04-26 07:16:18 -07:00
PushNotificationIOS Play sound in local notification only if soundName is specified 2017-05-28 15:37:10 -07:00
RCTTest Using `drawViewHierarchyInRect` instead of `renderInContext` for snapshot tests 2017-05-26 15:16:07 -07:00
ReactNative allow inspector to show if not Systrace profiling 2017-05-15 05:16:48 -07:00
Renderer Flat ReactNative renderer bundle [WIP] 2017-05-26 11:03:06 -07:00
Sample Fix missing RCTBridgeModule.h 2017-01-31 11:13:50 -08:00
Settings Enable -Wimplicit-retain-self en sync warning config for all projects 2017-03-23 15:01:34 -07:00
Share Flowify Process Color 2017-04-26 11:31:56 -07:00
Storage correctly order ASyncStorage 2017-02-21 15:18:40 -08:00
StyleSheet Flat ReactNative renderer bundle [WIP] 2017-05-26 11:03:06 -07:00
Text RCTTextField was spliited into two classes 2017-05-29 16:01:11 -07:00
Utilities Fix react-native function call arity errors 2017-05-18 16:55:55 -07:00
Vibration Enable -Wimplicit-retain-self en sync warning config for all projects 2017-03-23 15:01:34 -07:00
WebSocket Added Cookie Header to XML and Websocket request 2017-05-24 09:47:37 -07:00
react-native Introducing <ImageBackground>, replacement for <Image> which supports nesting views 2017-05-24 11:30:48 -07:00
vendor Remove `copyProperties` 2017-03-21 08:01:58 -07:00
Promise.js Allow Promise to display error strings and not just error objects. 2017-03-09 14:30:57 -08:00
promiseRejectionIsError.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00