Kaynağa Gözat

rn,settings: set the placeholder text color

master
Saúl Ibarra Corretgé 6 yıl önce
ebeveyn
işleme
e543625295

+ 2
- 1
react/features/settings/components/native/FormRow.js Dosyayı Görüntüle

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

+ 2
- 0
react/features/settings/components/native/styles.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet