I'm trying to control the color of a <Text> component via state. This works for the initial render, but changes to the state are not triggering a color change. My color state is set up pretty simply:
const [color, setColor] = useState<string>("gray-5")
A useEffect is triggering based on data changes, and is calling setColor with new values. I've confirmed via console logs that the value of color is actually changing as a result, but passing the value to the <Text> component doesn't actually change the rendered color:
<Text c={color}>text here</Text>
Only if I manually refresh the page does the new color render.