1
0
mirror of synced 2025-02-25 05:24:53 +01:00

fix: text color is white when device is dark mode

This commit is contained in:
노주찬 2023-02-07 21:26:39 +09:00
parent 56ed858dc3
commit b48f9cb0e0

@ -71,7 +71,10 @@ const TextField = (props: TextFieldProps) => {
style={isFocused ? styles.textInputTitleFocused : {}} style={isFocused ? styles.textInputTitleFocused : {}}
/> />
<TextInput <TextInput
style={styles.textInput} style={[
styles.textInput,
textInputProps.editable === false ? styles.textInputDisabled : {},
]}
onFocus={onFocusCallback} onFocus={onFocusCallback}
onBlur={onBlurCallback} onBlur={onBlurCallback}
{...textInputProps} {...textInputProps}
@ -244,6 +247,10 @@ const styles = StyleSheet.create({
textInput: { textInput: {
fontSize: 16, fontSize: 16,
paddingTop: 4, paddingTop: 4,
color: 'black',
},
textInputDisabled: {
color: 'rgba(0, 0, 0, 0.5)',
}, },
textInputTitle: { textInputTitle: {
fontSize: 14, fontSize: 14,