diff --git a/Libraries/Components/View/View.js b/Libraries/Components/View/View.js index 5aa581d09..a016a9967 100644 --- a/Libraries/Components/View/View.js +++ b/Libraries/Components/View/View.js @@ -44,6 +44,7 @@ var AccessibilityTraits = [ 'pageTurn', ]; + // <<<<< WARNING >>>>> // If adding any properties to View that could change the way layout-only status // works on iOS, make sure to update ReactNativeViewAttributes.js and @@ -105,6 +106,18 @@ var View = React.createClass({ 'button', ]), + /** + * Indicates to accessibility services whether the user should be notified + * when this view changes. Works for Android API >= 19 only. + * See http://developer.android.com/reference/android/view/View.html#attr_android:accessibilityLiveRegion + * for references. + */ + accessibilityLiveRegion: PropTypes.oneOf([ + 'none', + 'polite', + 'assertive', + ]), + /** * Provides additional traits to screen reader. By default no traits are * provided unless specified otherwise in element diff --git a/Libraries/ReactNative/ReactNativeViewAttributes.js b/Libraries/ReactNative/ReactNativeViewAttributes.js index c3a1e1351..e7db511ef 100644 --- a/Libraries/ReactNative/ReactNativeViewAttributes.js +++ b/Libraries/ReactNative/ReactNativeViewAttributes.js @@ -20,6 +20,7 @@ ReactNativeViewAttributes.UIView = { accessible: true, accessibilityLabel: true, accessibilityComponentType: true, + accessibilityLiveRegion: true, accessibilityTraits: true, testID: true, onLayout: true,