react / react/react-native

Text input padding

Open
#50,692 10 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs: Triage :mag:
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

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
  1. clone repo
  2. install deps && do a prebuild yarn prebuild
  3. 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproducer repository and follow its documented setup: install dependencies, run yarn prebuild, then launch Android with the intended Yarn command. Compare the TextInput rendering on React Native 0.79 with and without the explicit padding:0, checking both architecture configurations. Done means the unexpected Android padding is understood and corrected without requiring that workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.