diff --git a/src/components/DatePicker/index.android.js b/src/components/DatePicker/index.android.js index e034af725c17..ec1f23f70bd6 100644 --- a/src/components/DatePicker/index.android.js +++ b/src/components/DatePicker/index.android.js @@ -5,6 +5,7 @@ import _ from 'underscore'; import TextInput from '../TextInput'; import CONST from '../../CONST'; import {propTypes, defaultProps} from './datepickerPropTypes'; +import styles from '../../styles/styles'; class DatePicker extends React.Component { constructor(props) { @@ -49,6 +50,7 @@ class DatePicker extends React.Component { placeholder={this.props.placeholder} errorText={this.props.errorText} containerStyles={this.props.containerStyles} + textInputContainerStyles={this.state.isPickerVisible ? [styles.borderColorFocus] : []} onPress={this.showPicker} editable={false} disabled={this.props.disabled} diff --git a/src/components/DatePicker/index.ios.js b/src/components/DatePicker/index.ios.js index 062134ea468d..c9d076b7836b 100644 --- a/src/components/DatePicker/index.ios.js +++ b/src/components/DatePicker/index.ios.js @@ -75,6 +75,7 @@ class DatePicker extends React.Component { placeholder={this.props.placeholder} errorText={this.props.errorText} containerStyles={this.props.containerStyles} + textInputContainerStyles={this.state.isPickerVisible ? [styles.borderColorFocus] : []} onPress={this.showPicker} editable={false} disabled={this.props.disabled}