How to change the clothes color of a JavaScript modal dynamically based on user selection?

I’m building a fashion stylist app in react naitve, and I want to add a feature where, when a user clicks on a specific color, the clothes color of a JavaScript modal changes dynamically. This would allow users to visualize how different colors look in real time.

I have no idea where to start with implementing this. Could someone guide me on how to achieve this functionality using JavaScript and react native?