Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(iOS) autoComplete="cc-number" is not doing anything to allow autofill #36089

Open
Gambitboy opened this issue Feb 8, 2023 · 10 comments
Open
Labels
Component: TextInput Related to the TextInput component. Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Needs: Triage 🔍

Comments

@Gambitboy
Copy link

Gambitboy commented Feb 8, 2023

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

  1. Init blank template
  2. Create TextInput
  3. 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

@lunaleaps lunaleaps added the Component: TextInput Related to the TextInput component. label Feb 14, 2023
@Gambitboy
Copy link
Author

Bump, any assistance?

@Gambitboy
Copy link
Author

I'm having the same issue with OTP autofill working in debug mode but doesnt work for release mode

@gunnartorfis
Copy link

Same here. I'm not sure what the expected behaviour is on iOS but on Android I'd assume it is meant to pretty well integrated. When using the prop with React Native Web, it gets auto-filled as expected on Chrome (Android).

@eminsr
Copy link

eminsr commented Oct 24, 2023

The issue persists in version 0.72.5 and autoComplete="cc-number" also changes the keyboardType

@jhta
Copy link

jhta commented Feb 9, 2024

same here

@simgill
Copy link

simgill commented Mar 5, 2024

same

@phillipkey
Copy link

I'm seeing this issue on React Native 0.69.0. The fields work fine for android but nothing on iOS.

I've been searching to see if there's something that needs to be added to the app's configuration to enable the permission since I believe it's using the keychain.

@andreassh
Copy link

same on v0.73.4

@Gambitboy Gambitboy changed the title autoComplete="cc-number" is not doing anything to allow autofill (iOS) autoComplete="cc-number" is not doing anything to allow autofill Oct 31, 2024
@Gambitboy
Copy link
Author

Android is working on 0.76.1

@Gambitboy
Copy link
Author

iOS still broken

@cortinico cortinico added the Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: TextInput Related to the TextInput component. Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Needs: Triage 🔍
Projects
None yet
Development

No branches or pull requests

9 participants