Releases: sbycrosz/react-native-credit-card-input
Releases · sbycrosz/react-native-credit-card-input
Release 1.0.0
1.0.0 (2024-07-19)
Finally updated in 2024 🎉
This should fix most of the issues from the old version
Features
Bug Fixes
Add more props to CreditCardInput
Refactored CreditCardView & Latest RN support
Breaking Changes from 0.2.*
cardViewSizeprop are removed fromCreditCardInput, usecardScaleinstead (because changing the size will break most of the texts)bgColorprop are removed fromCreditCardInput, ask your designer friend to make a credit card image instead (or use the prebundled image)imageFrontandimageBackprops are renamed tocardImageFrontandcardImageBackrespectively,- Android
monospacefonts doesn't looks as nice as iOSCourier, bundle custom fonts into your app and override the default usingcardFontFamilyinstead
Add toggle-able fields, Removed focused from onChange
- Now you could use requiresName, requiresCVC, and requiresPostalCode to toggle the displayed fields of CreditCardInput.
- onChange will not receive
focusedvalue, because focusing on a field will not trigger onChange event which might cause rage, confusion, and pain when using thefocusedvalue - Now you could use
onFocusto properly get the currently focused field (e.g. when you want to display a help text just like this)