-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
Current behaviour
Screencast from 23.03.2023 01:28:16.webm
If TextInput is unfocused, then the label disappears. It was tested only on android.
Expected behaviour
Screencast from 23.03.2023 01:31:55.webm
The label should stay and not disappear
How to reproduce?
<TextInput label={i18n.t('login.login')} value={username} onChangeText={setUsername} />
What have you tried so far?
I think the problem is with TextInput label opacity, so I made a little change there:
| outputRange: [hasActiveOutline ? 1 : 0, 0], |
I replaced this line with this line:
outputRange: [1, 1],And everything began to work correctly (That's how I made preview videos in sections Current behaviour and Expected behaviour)
Your Environment
| software | version |
|---|---|
| android | 13 |
| react-native | 0.71.4 |
| react-native-paper | 5.5.0 |
| node | 18.15.0 |
| npm | 9.5.0 |
| expo sdk | (no expo) |
Reactions are currently unavailable