react / react/react-native

Text input padding

Đang mở
#50,692 10 bình luận 12 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Needs: Triage :mag:
Ngôn ngữ chính
C++
Star
127k
Fork
25.3k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
4

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với repository tái hiện được liên kết và làm theo thiết lập đã được ghi lại: cài đặt các dependency, chạy yarn prebuild, sau đó khởi chạy Android bằng lệnh Yarn dự kiến. So sánh việc render TextInput trên React Native 0.79 khi có và không có padding:0 tường minh, đồng thời kiểm tra cả hai cấu hình kiến trúc. Công việc được xem là hoàn tất khi padding bất ngờ trên Android được hiểu rõ và sửa mà không cần workaround này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, react-native
Lĩnh vực
mobile
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
42/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.