How can I remove the white bar on focus of my TextInput
? I have tried to removed it with underlineColor but I still see it
<TextInput
style={[styles.input, styles.textArea]}
placeholder="Raison de l'absence"
value={reason}
onChangeText={setReason}
underlineColor="transparent"
underlineColorAndroid="transparent"
autoFocus={false}
/>;
I am using MD3DarkTheme
from react-native-paper
textArea: {
borderColor: 'transparent',
},
input: {
width: '100%',
height: 40,
borderWidth: 1,
borderRadius: 5,
marginBottom: 15,
paddingLeft: 10,
justifyContent: 'center',
color: PaperDarkTheme.colors.text,
},
Solution : According to the documentation I had to change activeUnderlineColor
By passing
primary
color astransparent
in thetheme
prop you can get of underline from TextInput.