Browse Source
Merge pull request #133 from henninghall/add-test-id-on-ios
Add testID for DatePickerIOS
master
Henning Hall
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
DatePickerIOS.js
|
|
@ -56,6 +56,7 @@ export default class DatePickerIOS extends React.Component { |
|
|
|
if (__DEV__) throwIfInvalidProps(props) |
|
|
|
return ( |
|
|
|
<RCTDatePickerIOS |
|
|
|
testID={this.props.testID} |
|
|
|
key={this.props.textColor} // preventing "Today" string keep old text color when text color changes
|
|
|
|
ref={picker => { |
|
|
|
this._picker = picker |
|
|
|