|
@@ -166,6 +166,7 @@ export const Input: FC<Props> = ({
|
|
|
inputMode={inputMode ?? 'text'}
|
|
inputMode={inputMode ?? 'text'}
|
|
|
secureTextEntry={isPrivate ?? false}
|
|
secureTextEntry={isPrivate ?? false}
|
|
|
placeholder={placeholder}
|
|
placeholder={placeholder}
|
|
|
|
|
+ placeholderTextColor={Colors.LIGHT_GRAY}
|
|
|
onChangeText={onChange}
|
|
onChangeText={onChange}
|
|
|
multiline={multiline}
|
|
multiline={multiline}
|
|
|
contextMenuHidden={inputMode === 'none'}
|
|
contextMenuHidden={inputMode === 'none'}
|
|
@@ -190,42 +191,13 @@ export const Input: FC<Props> = ({
|
|
|
onBlur(e);
|
|
onBlur(e);
|
|
|
}
|
|
}
|
|
|
}}
|
|
}}
|
|
|
- style={[{ height: '100%', width: '100%', flex: 1 }, !icon ? { padding: 10 } : null]}
|
|
|
|
|
|
|
+ style={[
|
|
|
|
|
+ { height: '100%', width: '100%', flex: 1, color: Colors.BLACK },
|
|
|
|
|
+ !icon ? { padding: 10 } : null
|
|
|
|
|
+ ]}
|
|
|
autoFocus={autoFocus}
|
|
autoFocus={autoFocus}
|
|
|
/>
|
|
/>
|
|
|
)}
|
|
)}
|
|
|
- {/* <TextInput
|
|
|
|
|
- editable={editable}
|
|
|
|
|
- value={value}
|
|
|
|
|
- inputMode={inputMode ?? 'text'}
|
|
|
|
|
- secureTextEntry={isPrivate ?? false}
|
|
|
|
|
- placeholder={placeholder}
|
|
|
|
|
- onChangeText={onChange}
|
|
|
|
|
- multiline={multiline}
|
|
|
|
|
- contextMenuHidden={inputMode === 'none'}
|
|
|
|
|
- caretHidden={inputMode === 'none'}
|
|
|
|
|
- onPress={() => {
|
|
|
|
|
- setFocused(true);
|
|
|
|
|
- if (isFocused) {
|
|
|
|
|
- isFocused(true);
|
|
|
|
|
- }
|
|
|
|
|
- }}
|
|
|
|
|
- onFocus={() => {
|
|
|
|
|
- if (inputMode !== 'none') {
|
|
|
|
|
- setFocused(true);
|
|
|
|
|
- if (isFocused) {
|
|
|
|
|
- isFocused(true);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }}
|
|
|
|
|
- onBlur={(e) => {
|
|
|
|
|
- setFocused(false);
|
|
|
|
|
- if (onBlur) {
|
|
|
|
|
- onBlur(e);
|
|
|
|
|
- }
|
|
|
|
|
- }}
|
|
|
|
|
- style={[{ height: '100%', width: '100%', flex: 1 }, !icon ? { padding: 10 } : null]}
|
|
|
|
|
- /> */}
|
|
|
|
|
{clearIcon && value && value?.length > 0 ? (
|
|
{clearIcon && value && value?.length > 0 ? (
|
|
|
<TouchableOpacity
|
|
<TouchableOpacity
|
|
|
style={styles.clearIcon}
|
|
style={styles.clearIcon}
|