sbycrosz / react-native-credit-card-input

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

get error immediately when i import #84

Closed ha-family closed 7 years ago

ha-family commented 7 years ago

i got an error after i import the component did anyone got same error??

https://imgur.com/05jKbXR

Unhandled JS Exception: Cannot read property 'string' of undefined Unhandled JS Exception: Module AppRegistry is not a registered callable module (calling runApplication)

phanoophong commented 7 years ago

error because react 16 not have Proptypes but this lib use PropTypes from react 15 You can edit lib and Replace Proptype with prop-type ("(https://www.npmjs.com/package/prop-types") and worked fine.

ha-family commented 7 years ago

thank you !! it's works but another error shows Unhandled JS Exception: Error: The component cannot contain children. If you want to render content on top of the image, consider using aboslute positioning.

error only shows when i use CreditCardInput

ha-family commented 7 years ago

i solved by change CardView.js switch Image to ImageBackground