Closed askiiRobotics closed 7 years ago
I experienced the same issue when not passing a styles prop to AddCard
. Adding styles={{}}
solved the problem for me.
Hey guys, apologies for this. @hammadj forked the project and released it to npm. So the issue is actually with his version
Since a few people are using this I've spent some time improving things. I've fixed this and completely redone the documentation and added a functioning example.
The npm package is: react-native-checkout
Hi, Thanks to authors for your solution.
In react-native@0.40.0 and react@15.4.2 for react-native-stripe-checkout@0.0.15 i've got an error with message "Cannot read property 'bold' of undefined" from the file located in \react-native-stripe-checkout\lib\components\addCard\defaultStyles.js for _ref variable which is undefined in runtime. It simply solved by this code after curly braces at start on line 11 for example: if(!_ref){_ref =_styles;} . Maybe it was compilation issues. Please, rebuild lib.
Regards,