Kishanjvaghela / react-native-cardview

Native CardView for react-native (All Android version and iOS)
https://www.npmjs.com/package/react-native-cardview
MIT License
510 stars 82 forks source link

How to set the background color ? #22

Closed ArthurAttout closed 6 years ago

ArthurAttout commented 6 years ago

When I try to run the app with the following properties

<CardView cardElevation={2} cardMaxElevation={2} backgroundColor='#ffffff'>

I have a TypeError, telling that the attribute BackgroundColor must be a double instead of a string. Which type of color encoding is expected here ? Should it resolve to a R.color attribute ?

ArthurAttout commented 6 years ago

Nevermind, I had to use stylesheets instead of directly using the prop in the markup