You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Input component labels in outlined mode need some work #4235
When background and primary are close to each other we are not able to style text-color of labels on input-components separately from primary color in theme. It's weird that primary is used both in backgrounds and texts without escape hatches.
When placing a rounded<TextInput> with mode="outlined" and outlineStyle={{borderColor:'transparent'}} on a elevated <Surface>, then the backgroundColor of the label gets a weird shape.
Expected behaviour
I expect:
The rounding of the input to hide the label background
The label background to be styleable without creating a label element
Each of the inputs parts to have to have escapeHatches for styling, such as these props, or a style function that takes it's state(focused, normal, disabled) labelStyle, activeLabelStyle, inputStyle, activeInputStyle,
@ramakula I am working with react-native-paper's version 4.12.5 and facing the same issue as yours. I have tried 4.12.8 as well, but no luck. Did you manage to fix it? I haven't tried v5 because I am working on a lengthy project with extensive react-native-paper use working seemingly fine so I don't want to take the risk of migration to v5 right now.
Activity
ramakula commentedon Dec 19, 2023
@StefanWallin If we pass a Text component with a color as a label to a text input in outlined mode, it looks like this:
<TextInput....
.....
label: <Text style={{ color: '#333333' }}
HamidAliSE commentedon May 18, 2026
@ramakula I am working with react-native-paper's version 4.12.5 and facing the same issue as yours. I have tried 4.12.8 as well, but no luck. Did you manage to fix it? I haven't tried v5 because I am working on a lengthy project with extensive react-native-paper use working seemingly fine so I don't want to take the risk of migration to v5 right now.
feat: rework TextInput component (#4909)