DEV Community

Anaturuchi
Anaturuchi

Posted on

How to change color of an icon, text or other component with ReactNative useState Hook

Here is an example that can be helpful. In this case, I want to update the colour of my heart IonIcon when a user clicks on it once, so I first wrapped it in touchableOpacity to get that blink effect. If you don't want to wrap it, you simply put…

Top comments (0)