react-native-credit-card-input icon indicating copy to clipboard operation
react-native-credit-card-input copied to clipboard

additionalInputProps wasn't working properly

Open altenorjr opened this issue 5 years ago • 3 comments

The additionalInputProps prop was all but useless. Any passed in prop would be promptly overwritten by the defaults. The correct approach would be merging the added props at the end of the TextInput list of props, so that the props passed in will overwrite the defaults. The only problem would be extending the default styles. To do that, I've taken any style prop that comes down in the additionalInputProps and merged it at the end of the TextInput styles. I think this will do the trick.

altenorjr avatar Jun 23 '19 04:06 altenorjr

When is this merged ?

josuearrieta avatar Jun 30 '19 23:06 josuearrieta

@altenorjr @josuearrieta This project was abandoned :( I created a fork of this one: https://github.com/yuritoledo/react-native-credit-card-input/

I am fixing the security issues and will add new features in future.

PR are welcome!

yuritoledo avatar Sep 06 '19 11:09 yuritoledo

Please, bring your pull requests to my repo. I Will maintain this lib.

https://github.com/ebellumat/react-native-credit-card-input

ebellumat avatar Oct 21 '19 18:10 ebellumat