Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillReceiveProps() {
this.setState({
anim: new Animated.Value(0.6)
});
}
constructor(props) {
super(props);
this.state = {
anim: new Animated.Value(0.6)
};
}