react / react/react-native

textContentType='streetAddressLine2' is not working in ios

Đang mở
#42,764 2 bình luận 2 reaction 0 người được giao Xem trên GitHub

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

Issue: Author Provided Repro Needs: Triage :mag: Platform: iOS
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

In my react native app I want to show suggestion for address the suggestion works for textContentType='streetAddressLine1' I get the name of the street that is saved in the contacts but for textContentType='streetAddressLine2' it is not working .No suggestion is comming up there

Steps to reproduce
  1. install the react native app with react native version "0.73.3".
  2. In the app.tsx file create 2 TextInput with textContentType 'streetAddressLine1' and 'streetAddressLine2'.
  3. Got to the contacts app in your ios simulator select a profile which have the complete address filled ,In my case it is David Taylor profile make sure the complete address is filled .
  4. now for 'streetAddressLine1' u will get the suggestion on the keyboard but not for 'streetAddressLine2'
React Native Version

0.73.3

Affected Platforms

Runtime - iOS

Output of npx react-native info
System:
  OS: macOS 14.2.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 138.41 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.9.0
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.1.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.11.13.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.11090377
  Xcode:
    version: 15.1/15C65
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.21
    path: /usr/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/ritikgupta/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.73.3
    wanted: 0.73.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false
Stacktrace or Logs
Stacktrace or logs not available
Reproducer

https://snack.expo.dev/@ritik_1_g/tenacious-red-watermelon

Screenshots and Videos

https://github.com/facebook/react-native/assets/147544573/8e5e9e6c-f23e-4831-8db6-5c066b3e4b4d

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 bản tái hiện Snack được liên kết và so sánh hai trường TextInput sử dụng streetAddressLine1 và streetAddressLine2 trên iOS. Tái hiện bằng thiết lập React Native 0.73.3 và iOS 17.2 được chỉ định, sau đó kiểm tra hành vi của TextInput trên iOS và xác định liệu streetAddressLine2 có nên tạo ra một gợi ý liên hệ hay không; được xem là hoàn tất khi gợi ý mong đợi hoạt động hoặc giới hạn của nền tảng được ghi lại.

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

Đánh giá

Công nghệ
ios, 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
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/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.