rn,settings: set the placeholder text color

This commit is contained in:
Saúl Ibarra Corretgé 2019-11-13 09:57:42 +01:00 committed by Saúl Ibarra Corretgé
parent 0b25ff649e
commit e543625295
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import { Text, View } from 'react-native';
import { translate } from '../../../base/i18n';
import styles, { ANDROID_UNDERLINE_COLOR } from './styles';
import styles, { ANDROID_UNDERLINE_COLOR, PLACEHOLDER_COLOR } from './styles';
/**
* The type of the React {@code Component} props of {@link FormRow}
@ -107,6 +107,7 @@ class FormRow extends Component<Props> {
switch (field.type.displayName) {
case 'TextInput':
return {
placeholderTextColor: PLACEHOLDER_COLOR,
style: styles.textInputField,
underlineColorAndroid: ANDROID_UNDERLINE_COLOR
};

View File

@ -4,6 +4,8 @@ import {
} from '../../../base/styles';
export const ANDROID_UNDERLINE_COLOR = 'transparent';
export const PLACEHOLDER_COLOR = ColorPalette.lightGrey;
const TEXT_SIZE = 17;
/**