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.*
cardViewSize
prop are removed fromCreditCardInput
, usecardScale
instead (because changing the size will break most of the texts)bgColor
prop are removed fromCreditCardInput
, ask your designer friend to make a credit card image instead (or use the prebundled image)imageFront
andimageBack
props are renamed tocardImageFront
andcardImageBack
respectively,- Android
monospace
fonts doesn't looks as nice as iOSCourier
, bundle custom fonts into your app and override the default usingcardFontFamily
instead
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
focused
value, because focusing on a field will not trigger onChange event which might cause rage, confusion, and pain when using thefocused
value - Now you could use
onFocus
to properly get the currently focused field (e.g. when you want to display a help text just like this)