@@ -332,6 +332,7 @@ class DatePicker extends Component {
332
332
cancelBtnText,
333
333
confirmBtnText,
334
334
TouchableComponent,
335
+ accessibilityLabel,
335
336
testID,
336
337
cancelBtnTestID,
337
338
confirmBtnTestID,
@@ -351,7 +352,7 @@ class DatePicker extends Component {
351
352
underlayColor = { 'transparent' }
352
353
onPress = { this . onPressDate }
353
354
testID = { testID }
354
- accessibilityLabel = { testID } >
355
+ accessibilityLabel = { accessibilityLabel } >
355
356
< View style = { [ Style . dateTouchBody , customStyles . dateTouchBody ] } >
356
357
{
357
358
! this . props . hideText ?
@@ -399,8 +400,7 @@ class DatePicker extends Component {
399
400
underlayColor = { 'transparent' }
400
401
onPress = { this . onPressCancel }
401
402
style = { [ Style . btnText , Style . btnCancel , customStyles . btnCancel ] }
402
- testID = { cancelBtnTestID }
403
- accessibilityLabel = { cancelBtnTestID } >
403
+ testID = { cancelBtnTestID } >
404
404
< Text
405
405
allowFontScaling = { allowFontScaling }
406
406
style = { [ Style . btnTextText , Style . btnTextCancel , customStyles . btnTextCancel ] } >
@@ -411,8 +411,7 @@ class DatePicker extends Component {
411
411
underlayColor = { 'transparent' }
412
412
onPress = { this . onPressConfirm }
413
413
style = { [ Style . btnText , Style . btnConfirm , customStyles . btnConfirm ] }
414
- testID = { confirmBtnTestID }
415
- accessibilityLabel = { confirmBtnTestID } >
414
+ testID = { confirmBtnTestID } >
416
415
< Text allowFontScaling = { allowFontScaling }
417
416
style = { [ Style . btnTextText , customStyles . btnTextConfirm ] } >
418
417
{ confirmBtnText }
@@ -478,7 +477,9 @@ DatePicker.propTypes = {
478
477
modalOnResponderTerminationRequest : PropTypes . func ,
479
478
is24Hour : PropTypes . bool ,
480
479
getDateStr : PropTypes . func ,
481
- locale : PropTypes . string
480
+ locale : PropTypes . string ,
481
+ accessibilityLabel : PropTypes . string ,
482
+ testID : PropTypes . string
482
483
} ;
483
484
484
485
export default DatePicker ;
0 commit comments