rn,settings: set the placeholder text color
This commit is contained in:
parent
0b25ff649e
commit
e543625295
|
@ -5,7 +5,7 @@ import { Text, View } from 'react-native';
|
||||||
|
|
||||||
import { translate } from '../../../base/i18n';
|
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}
|
* The type of the React {@code Component} props of {@link FormRow}
|
||||||
|
@ -107,6 +107,7 @@ class FormRow extends Component<Props> {
|
||||||
switch (field.type.displayName) {
|
switch (field.type.displayName) {
|
||||||
case 'TextInput':
|
case 'TextInput':
|
||||||
return {
|
return {
|
||||||
|
placeholderTextColor: PLACEHOLDER_COLOR,
|
||||||
style: styles.textInputField,
|
style: styles.textInputField,
|
||||||
underlineColorAndroid: ANDROID_UNDERLINE_COLOR
|
underlineColorAndroid: ANDROID_UNDERLINE_COLOR
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,6 +4,8 @@ import {
|
||||||
} from '../../../base/styles';
|
} from '../../../base/styles';
|
||||||
|
|
||||||
export const ANDROID_UNDERLINE_COLOR = 'transparent';
|
export const ANDROID_UNDERLINE_COLOR = 'transparent';
|
||||||
|
export const PLACEHOLDER_COLOR = ColorPalette.lightGrey;
|
||||||
|
|
||||||
const TEXT_SIZE = 17;
|
const TEXT_SIZE = 17;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue