react-native-credit-card-input
react-native-credit-card-input copied to clipboard
Fix react-native-web Compatibility for LiteCreditCardInput
The Problem
Currently, LiteCreditInput
is not working on the web (using react-native-web) because the inputs are number inputs, which on the web will not allow non-numeric characters (i.e. spaces, /
, etc.). Additionally, focus outlines are making the display look different from on iOS / Android.
Solution
This PR adds two fixes:
- Changes the input type to
text
on web (by removing thekeyboardType
prop) - Removes the outline on web, in the styles
Please, bring your pull requests to my repo. I Will maintain this lib.
https://github.com/ebellumat/react-native-credit-card-input