Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't grey out Disabled TextInput in React Native Elements

Tags:

react-native

I am trying to change the color of disabled React-native-elements component TextInput. Default behaviour is to grey out everything but I would like to have solid black color of the text even if it's disabled. Has anybody tips of how to do it?

Same question as Don't grey out Disabled Input in React Native Elements but for TextInput component.

TextInput don't have a disabledInputStyle prop.

like image 784
FabioDev Avatar asked Jan 22 '26 21:01

FabioDev


1 Answers

You can use editable. It won't grey out it.

<View style={styles.app}>
    <TextInput
        style={{ height: 40, borderColor: "gray", borderWidth: 1 }}
        value={"values"}
        editable={false}
    />
</View>

enter image description here

like image 134
Rajan Avatar answered Jan 25 '26 20:01

Rajan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!