Text input padding
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.3k
- Ø Merge
- 1 T. 23 Std.
- Gemergte PRs (30 T.)
- 4
Beschreibung
Description
With expo 53 and react native 0.79 I noticed our input has weird padding my solution was to give it padding:0
I tried it with new and old arch it is the same
Steps to reproduce
- clone repo
- install deps && do a prebuild
yarn prebuild - run android
yarn andriod
React Native Version
0.79.0
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
System:
OS: macOS 15.4
CPU: (12) arm64 Apple M2 Pro
Memory: 259.66 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.3.0
path: ~/homebrew/bin/node
Yarn:
version: 1.22.22
path: ~/.config/yarn/global/node_modules/.bin/yarn
npm:
version: 10.9.2
path: ~/homebrew/bin/npm
Watchman:
version: 2025.04.07.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.4
- iOS 18.4
- macOS 15.4
- tvOS 18.4
- visionOS 2.4
- watchOS 11.4
Android SDK: Not Found
IDEs:
Android Studio: 2024.3 AI-243.24978.46.2431.13208083
Xcode:
version: 16.3/16E140
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 3.4.2
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.79.0
wanted: 0.79.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
there is no logs here
Reproducer
https://github.com/mzaien/react-native-0.79-textinput-repro
Screenshots and Videos
https://github.com/user-attachments/assets/8d166d30-384e-4be0-b45c-eda8fed4a7e0
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit dem verlinkten Reproduktions-Repository und folgen Sie dessen dokumentiertem Setup: Installieren Sie die Abhängigkeiten, führen Sie yarn prebuild aus und starten Sie anschließend Android mit dem vorgesehenen Yarn-Befehl. Vergleichen Sie das Rendering von TextInput unter React Native 0.79 mit und ohne das explizite padding:0, und prüfen Sie dabei beide Architekturkonfigurationen. Die Aufgabe ist erledigt, wenn die unerwartete Android-Padding verstanden und behoben ist, ohne dass dieser Workaround erforderlich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, react-native
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100