You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React Native's autoComplete prop includes birthdate-day, birthdate-month, birthdate-year and birthdate-full (iOS 17+ and Android). react-native-web passes autoComplete to the DOM unchanged, so the input renders autocomplete="birthdate-day". That isn't an HTML autofill token, and browsers ignore it. The HTML tokens are bday-day, bday-month, bday-year and bday.
React Native's types only accept its own names, so a cross-platform component can't pass the HTML tokens without a cast or a Platform branch.
Expected behavior
<input autocomplete="bday-day">, in the same way returnKeyType already becomes enterKeyHint and keyboardType becomes inputMode.
consthtmlAutoComplete={'birthdate-day': 'bday-day','birthdate-full': 'bday','birthdate-month': 'bday-month','birthdate-year': 'bday-year'};// in TextInputconstautoCompleteValue=autoComplete||autoCompleteType||'on';supportedProps.autoComplete=htmlAutoComplete[autoCompleteValue]||autoCompleteValue;
React Native's Android-only names (name-given, name-family, password-new, sms-otp, tel-device, username-new) also have HTML equivalents and could share the same table.
Activity