react-native-credit-card-input
react-native-credit-card-input copied to clipboard
Adding style and ref props to individual TextInputs, updating UX on LiteCreditCardInput, replacing TouchableOpacity with Pressable
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.