react-native-cardview
react-native-cardview copied to clipboard
error while updating property 'backgroundColor' of a view managed by: RNCardView
I use the ios application without any problems in React Native but I get the following error on android. Rgba color definition is required. Doesn't Rgba support color support?
ext {
buildToolsVersion = "29.0.1"
minSdkVersion = 16
compileSdkVersion = 29
targetSdkVersion = 26
supportLibVersion = "29.0.1"
}
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
}
.js
render() {
return (
<ScrollView>
<Image source={require('../images/HEADER.png')} style={styles.imageBanner}>
</Image>
<View style={styles.container}>
<CardView cardElevation={4}
maxCardElevation={4}
radius={10}
backgroundColor={'#ffffff'}>
<View style={{padding:10}}>
<View>
<HTML html={this.state.dataIcerik[0]} />
</View>
container: {
flex: 1,
paddingLeft:20,
paddingRight:20,
paddingTop: 10,
backgroundColor: 'rgba(248, 248, 248, 1.0)',]