Skip to content

Releases: sbycrosz/react-native-credit-card-input

Release 1.0.0

19 Jul 07:35
Compare
Choose a tag to compare

1.0.0 (2024-07-19)

Finally updated in 2024 🎉
This should fix most of the issues from the old version

⚠️⚠️⚠️ BREAKING CHANGE

Features

  • add unit tests (62a415a)
  • refactor credit-card-input to new react standard (9626564)
  • refactor credit-card-lite-input to new react standard (c11a52e)
  • refactor credit-card-view to new react standard (a0b6485)

Bug Fixes

30 Dec 08:54
Compare
Choose a tag to compare
  • Fixes placeholderColor props #23

Add more props to CreditCardInput

26 Dec 15:46
Compare
Choose a tag to compare
  • Prop to enable horizontal swiping on form #22
  • Adding feature replace brand icons #21

Refactored CreditCardView & Latest RN support

06 Dec 04:15
Compare
Choose a tag to compare

Breaking Changes from 0.2.*

  • cardViewSize prop are removed from CreditCardInput, use cardScale instead (because changing the size will break most of the texts)
  • bgColor prop are removed from CreditCardInput, ask your designer friend to make a credit card image instead (or use the prebundled image)
  • imageFront and imageBack props are renamed to cardImageFront and cardImageBack respectively,
  • Android monospace fonts doesn't looks as nice as iOS Courier, bundle custom fonts into your app and override the default using cardFontFamily instead

Add toggle-able fields, Removed focused from onChange

17 Sep 16:10
Compare
Choose a tag to compare
  • 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 the focused 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)