-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Current behaviour
inputOpacityWrong.webm
When first rendering TextInput (flat or outlined) the label is invisible. After focusing on them the label is shown.
This only seems to happen when using new architecture
Tested on Android.
Expected behaviour
inputOpacityRight.webm
The label should be visible even before focusing on new architecture
How to reproduce?
<TextInput mode="outlined" value={text} onChangeText={txt => setText(txt)} label="Something" placeholder="Something else" />
<TextInput mode="flat" value={text} onChangeText={txt => setText(txt)} label="Something" placeholder="Something else" />
What have you tried so far?
Much like in #3776 I can create a workaround fix by changing the outputRange a little bit here:
| outputRange: [hasActiveOutline ? 1 : 0, 0], |
If i replace the last
0 with 1 or opacity I get what is seen on the expected behavior video clip.For example:
outputRange: [hasActiveOutline ? 1 : 0, 1],
Your Environment
| software | version |
|---|---|
| android | 11 |
| react-native | 0.72.5 |
| react-native-paper | 5.10.6 |
| node | 18.16.0 |
| npm or yarn | 9.5.1 npm |
| expo sdk | (no expo) |
baryon, DimaBarokha, noeminihoul, nat-jones, cervisebas and 1 morebradstiff