File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ export default class Slider extends PureBaseComponent {
345345 this . _x = this . getXForValue ( newValue ) ;
346346 this . updateValue ( this . _x ) ;
347347 this . updateStyles ( this . _x ) ;
348- AccessibilityInfo . announceForAccessibility ( `New value ${ newValue } ` ) ;
348+ _ . invoke ( AccessibilityInfo , 'announceForAccessibility' , `New value ${ newValue } ` ) ;
349349 } ;
350350
351351 /* Renders */
Original file line number Diff line number Diff line change @@ -70,18 +70,18 @@ export default class Stepper extends PureBaseComponent {
7070 switch ( event . nativeEvent . action ) {
7171 case 'decrement' :
7272 if ( value <= min ) {
73- AccessibilityInfo . announceForAccessibility ( ` ${ stepperLimitMsg } ` ) ;
73+ _ . invoke ( AccessibilityInfo , 'announceForAccessibility' , stepperLimitMsg ) ;
7474 } else {
7575 this . updateValue ( value - 1 ) ;
76- AccessibilityInfo . announceForAccessibility ( value - 1 ) ;
76+ _ . invoke ( AccessibilityInfo , 'announceForAccessibility' , value - 1 ) ;
7777 }
7878 break ;
7979 case 'increment' :
8080 if ( value >= max ) {
81- AccessibilityInfo . announceForAccessibility ( ` ${ stepperLimitMsg } ` ) ;
81+ _ . invoke ( AccessibilityInfo , 'announceForAccessibility' , stepperLimitMsg ) ;
8282 } else {
8383 this . updateValue ( value + 1 ) ;
84- AccessibilityInfo . announceForAccessibility ( value + 1 ) ;
84+ _ . invoke ( AccessibilityInfo , 'announceForAccessibility' , value + 1 ) ;
8585 }
8686 break ;
8787 default :
You can’t perform that action at this time.
0 commit comments