1
0
mirror of synced 2025-01-31 03:53:47 +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

View File

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