title: How can i change background Color with transition using reanimated v2
body: <p>I new to react-native-reanimated. I'm trying to change backgorundCOlor depending on the state. For now I have such code:</p>
  <pre><code>const [visible, setVisible] = useState&lt;boolean&gt;(true)
  const backgroundColor = useSharedValue(0);
  const backgroundColorStyle = useDerivedValue(() =&gt; interpolateColor(backgroundColor.value, [0, 1], ['transparent', 'rgba(0, 0, 0 , .5)']) )
  
  const backgroundInterpolate = useAnimatedStyle(() =&gt; ({
      backgroundColor: backgroundColorStyle.value
  }), [])
  
    .... 
  
  &lt;Animated.View style={[{height: '65%'}, backgroundInterpolate]}&gt; 
     ....
  
  &lt;/Animated.View&gt;
  </code></pre>
  <p>So with this code i got such error:</p>
  <p><a href="https://i.stack.imgur.com/WdjgO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WdjgO.png" alt="error message" /></a></p>
  <p>Maybe i made it too complicated for such easy task like backgroundCOlor change with transition. Any way I'll asking you for a help, cz I'm stacked.</p>