Skip to content

I get a error when to change the backgroundColor by Animated #20594

@YouCii

Description

@YouCii

This is my code.

 <Animated.View style={[styles.loginButton, { transform: [{ backgroundColor: this.state.anim.interpolate({ inputRange: [0, 1], outputRange: ['rgba(80,253,227,0.2)', 'rgba(80,253,227,1)'] }) }] }]}></Animated.View> 

The error

Invariant Violation: Invariant Violation: Invalid transform backgroundColor: {"backgroundColor":"rgba(80,253,227,0.2)"} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions