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

# Attempted to redefine property 'style' on android with LiteCreditCard and debug mode false

Open davidducluzeaud opened this issue 5 years ago • 10 comments

Hi folks ! I have a bug on android when I have the package installed on Android with debug mode off. Everything else works fine on iOS and android with the debug mode ON. My error is this One. Thanks 😉

image (7)

davidducluzeaud avatar Mar 25 '19 10:03 davidducluzeaud

Facing same issue, Anyone have any fix yet?

image

Ravi448 avatar Mar 25 '19 10:03 Ravi448

Looks like this is an issue with https://github.com/moschan/react-native-flip-card where they have a duplicate style prop.

https://github.com/moschan/react-native-flip-card/issues/75

Mattimus333 avatar Mar 25 '19 23:03 Mattimus333

This is a simple error coming from a dependency library (react-native-flip-card). To fix this, just go to

node_modules/react-native-flip-card/lib/FlipCard.js

search for TouchableOpacity and remove the duplicate style={{flex:1}} Good luck guys!

mosoakinyemi avatar Mar 28 '19 08:03 mosoakinyemi

Getting the same problem.

Don't have react-native-flip-card in my dependencies.

PetteriHaro avatar Mar 28 '19 12:03 PetteriHaro

Okay @PetteriHaro , does it work in the debug mode?

mosoakinyemi avatar Mar 28 '19 12:03 mosoakinyemi

@Moshman20 Works perfectly in debug mode on android and in both modes on iOS

PetteriHaro avatar Mar 28 '19 12:03 PetteriHaro

@PetteriHaro Can you share a screenshot of your node_modules folder. (the area around react-native-credit-card-input folder). Something like this image

mosoakinyemi avatar Mar 28 '19 12:03 mosoakinyemi

Don't know if it's a dep of a dep but I deleted node_modules and ran npm install again and react-native-flip-card appeared in my node_modules. Your earlier fix on the style={{flex:1}} worked perfectly. @Moshman20 Thanks!

PetteriHaro avatar Mar 28 '19 13:03 PetteriHaro

Nice! @PetteriHaro Good luck.

mosoakinyemi avatar Mar 28 '19 13:03 mosoakinyemi

The PR https://github.com/moschan/react-native-flip-card/issues/75 has been merged ! I can't test if the dependencies have been upgrade, because i did my own card validator but it is just to keep the issue up to date. And thank you all for the quick reaction on this ! 😄

davidducluzeaud avatar Apr 01 '19 13:04 davidducluzeaud