react-native-cardview icon indicating copy to clipboard operation
react-native-cardview copied to clipboard

error while updating property 'backgroundColor' of a view managed by: RNCardView

Open stechome opened this issue 5 years ago • 0 comments

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?

ERROR

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)',]

stechome avatar Mar 10 '20 07:03 stechome