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

Adding style and ref props to individual TextInputs, updating UX on LiteCreditCardInput, replacing TouchableOpacity with Pressable #243

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fbele
Copy link

@fbele fbele commented Oct 1, 2024

I've added support to pass references as a prop to each individual TextInput element inside CreditCardInput and LiteCreditCardInput components. I've also added support to set styles for each individual TextInput element, in this case one can for example mark individual input if it's invalid using in combination with form data. I've also exchanged TouchableOpacity with Pressable as recommended by React itself. In LiteCreditCardInput version the focus moves to next field only if it's invalid and incomplete.

…iteCreditCardInput, replacing TouchableOpacity with Pressable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant