react / react/react-native

0.83 regressions (TextInput, Text)

Offen
#55,059 13 Kommentare 9 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Component: TextInput Impact: Regression Issue: Author Provided Repro Needs: React Native Team Attention
Vorherrschende Sprache
C++
Sterne
127k
Forks
25.3k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
4

Beschreibung

Description

I've noticed at least 2 regressions with 0.83

❗[attached video below] TextInput layout change issues: changing value on TextInput doesn't seem to update layout correctly and reposition the views around it. We mainly noticed it when using TextInput to vertically align the phone number prefix text (+1) with real input

Less important but still, fontWeight on iOS kinda snaps between Bold/Normal, completely ignoring values like 500 600. I noticed #54976 which seems to address this issue but I'm not 100% confident if that's the cause. Wanted to highlight it while I get the chance

Steps to reproduce
  1. Init a fresh 0.83.1 app
  2. Copy and paste the BrokenLayoutOnInputChanges component from the repro snack to the App.tsx and render it
  3. Tap on the red area which toggles the TextInput value between +1 and +52 to see that it layouts it incorrectly
  4. Optionally try running it on 0.82.1 and observe that it works fine
React Native Version

0.83.1

Affected Platforms

Runtime - iOS

Output of npx @react-native-community/cli info
System:
  OS: macOS 15.7.3
  CPU: (14) arm64 Apple M4 Pro
  Memory: 3.31 GB / 48.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.13.1
    path: /Users/user/.volta/tools/image/node/22.13.1/bin/node
  Yarn:
    version: 4.9.2
    path: /Users/user/.volta/tools/image/yarn/4.9.2/bin/yarn
  npm:
    version: 10.9.2
    path: /Users/user/.volta/tools/image/node/22.13.1/bin/npm
  Watchman:
    version: 2025.05.26.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.5
      - iOS 18.5
      - macOS 15.5
      - tvOS 18.5
      - visionOS 2.5
      - watchOS 11.5
  Android SDK: Not Found
IDEs:
  Android Studio: 2025.1 AI-251.26094.121.2513.14007798
  Xcode:
    version: 16.4/16F6
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.15
    path: /usr/bin/javac
  Ruby:
    version: 3.4.4
    path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.1
    wanted: 0.83.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true
Stacktrace or Logs
None needed
MANDATORY Reproducer

https://snack.expo.dev/@bigcupcoffee/broken-input-layout-repro

Screenshots and Videos

0.82.1 (working fine):

https://github.com/user-attachments/assets/4afe28e5-7c05-461f-861d-4668b5617bff

0.83.1 (not working fine):

https://github.com/user-attachments/assets/c3133c29-854b-4399-b2b1-01875dac4a59

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Führe zunächst den verlinkten Snack-Reproducer auf React Native 0.83.1 aus und vergleiche das Layout-Verhalten von TextInput mit 0.82.1. Untersuche die Wertänderung von +1 auf +52 getrennt vom gemeldeten iOS-fontWeight-Verhalten, einschließlich des referenzierten #54976. Als erledigt gilt die Aufgabe, wenn die umgebenden Views korrekt neu positioniert werden und unterstützte Zwischenwerte für fontWeight nicht mehr zwischen Bold und Normal wechseln.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
react-native
Bereich
mobile
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
48/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.