juandl / react-native-credit-card-input-plus

Easy, cross-platform credit-card input for your React Native Project! Start accepting payment 💰 in your app today!
MIT License
29 stars 26 forks source link

Mastercard default icon bug #14

Closed ekiziltas closed 6 months ago

ekiziltas commented 1 year ago

Even if "mastercard" is determined as type at onChange method, it is defined in icons file as "master-card" with additional dash.

juandl commented 1 year ago

Can you explain a bit more your issue or give a clear example, please.

ekiziltas commented 1 year ago

Can you explain a bit more your issue or give a clear example, please.

image

This card is mastercard but icon is not shown.

The solution is change "master-card" to "mastercard" in src/Icons.js file. That's all.

CommanderAlchemy commented 1 year ago

Hm not sure if this was updated but odly enough I have similar but different issue. icons.js now needs "mastercard" as key since the detection uses "mastercard" as key.

juandl commented 6 months ago

Solved, please update latest version