callstack / callstack/react-native-paper

TextInput mode=outline label animation was initially offset

Ouverte
#4,556 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug TextInput
Langage dominant
TypeScript
Étoiles
14.5k
Forks
2.2k
Merge moyen
5 j 23 h
PR mergées (30 j)
12

Description

### Current behaviour
After the page/screen loads, when the TextInput mode=outline has a value, the label is initially positioned at the right which results in overlapping with the outline, then does a sliding animation to the left.

![Image](https://github.com/user-attachments/assets/0519798e-5709-40ba-b4b8-8982771c8eba)

See video:
https://github.com/user-attachments/assets/202e3c1e-3b1a-4314-900a-83d2f6e47d0f

### Expected behaviour
No sliding animation like in V4.

### How to reproduce?
a simple: ` `

"No Loops", just plain render of multiple ``

I also created a [Snack sample](https://snack.expo.dev/dczmwbv0Sg2ptnF44p4Qo)

### Preview

### What have you tried so far?
the v4 seems fine, but doesn't support MD3.

### Your Environment

| software | version
| --------------------- | -------
| react-native | 0.74.5
| react-native-paper | 5.12.5
| node | 18.20.5
| npm or yarn | npm@10.8.2
| expo sdk | 51.0.28

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start at the TextInput implementation and reproduce the outlined input case from the linked Snack or the provided value and label. Check the initial label positioning and its transition on render; done means a populated mode="outlined" TextInput appears in its final position without a sliding animation.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
react-native, typescript
Domaine
frontend, mobile
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.