(iOS) autoComplete="cc-number" is not doing anything to allow autofill
Chưa có ai nhận issue này.
- 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
I've been trying to implement an TextInput for Credit Card Number that allows the users to autofill it using whatever password manager they use on their device.
I've tried different variations and props but its not working.
In my Snack it works when its running in web.
Tested on a physical android devices it works.
Tested on a physical iOS device it did not work.
Is this how its supposed to work or am I doing something wrong?
Version
0.76.1
Output of npx react-native info
System:
OS: macOS 15.1
CPU: (10) arm64 Apple M1 Pro
Memory: 494.67 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.7.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.2
path: /opt/homebrew/bin/npm
Watchman:
version: 2024.10.28.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/keatonroux/.rvm/gems/ruby-3.3.5/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.21829.142.2421.12409432
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /Users/keatonroux/.sdkman/candidates/java/current/bin/javac
Ruby:
version: 3.3.5
path: /Users/keatonroux/.rvm/rubies/ruby-3.3.5/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.0
wanted: 15.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.76.1
wanted: 0.76.1
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Steps to reproduce
- Init blank template
- Create TextInput
- Set autoComplete prop to "cc-number"
Snack, code example, screenshot, or link to a repository
https://snack.expo.dev/x9JtUAYkj
snack.expo.dev/@tushetv/adequate-orange-tortillas
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với Snack được liên kết và tái hiện TextInput với autoComplete="cc-number" trên một thiết bị iOS thực, đồng thời so sánh với hành vi đã được báo cáo trên web và Android. Xác định liệu prop này có được kỳ vọng là sẽ bật tính năng tự động điền thẻ tín dụng trên iOS hay không; hoàn tất khi hành vi của nền tảng và mọi thay đổi cần thiết đối với React Native đã được xác lập rõ ràng.
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
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100