diff --git a/index.js b/index.js index b59f95bd1c..44c5906c43 100644 --- a/index.js +++ b/index.js @@ -327,7 +327,10 @@ class DatePicker extends Component { minuteInterval, timeZoneOffsetInMinutes, cancelBtnText, - confirmBtnText + confirmBtnText, + testID, + cancelBtnTestID, + confirmBtnTestID } = this.props; const dateInputStyle = [ @@ -341,6 +344,7 @@ class DatePicker extends Component { style={[Style.dateTouch, style]} underlayColor={'transparent'} onPress={this.onPressDate} + testID={testID} > @@ -386,6 +390,7 @@ class DatePicker extends Component { underlayColor={'transparent'} onPress={this.onPressCancel} style={[Style.btnText, Style.btnCancel, customStyles.btnCancel]} + testID={cancelBtnTestID} > {confirmBtnText}