fix: text color is white when device is dark mode
This commit is contained in:
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user