-
Notifications
You must be signed in to change notification settings - Fork 294
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
Replace phone number field in sign up flow #5894
Comments
I'd love to get this component piped in there: https://www.npmjs.com/package/react-native-phone-number-input |
Here's my current workaround to support US country codes only:
|
Have you taken a look at the Subcomponent override slots? |
@reesscot i have but that doesn't let me replace the independent fields. Its always a TextInput component and I can't change or format the values with the onChange and "set state" bits due to the "black box" of the useFieldValues hook |
Im using the subcomponent replacement to customize the handleSubmit functions |
Hi @justinmakaila, The API doesn't currently support replacing individual fields, you have to replace the whole SignIn screen if you want to customize it. I'm converting this to a feature request for consideration on our roadmap. |
My cognito pool collects phone numbers at sign up. The Authenticator UI in react allows for modifying the phone number field to allow dropdown selection of country codes, but I can't seem to fine the equivalent in react-native. I don't want to rely on users putting in the '+1' manually. How can I manually override the component that is rendered in the form fields to replace it with a masked field or a field that provides a drop down for country codes?
The text was updated successfully, but these errors were encountered: