rive-react-native icon indicating copy to clipboard operation
rive-react-native copied to clipboard

How to control colors via runtime?

Open aentan opened this issue 1 year ago • 2 comments

Can the colors of shapes be controlled via the run time?

I'm trying to get my FE team to adopt Rive, and I need animations to integrate with design tokens. Mainly colors. I can't find the information in the docs.

Help appreciated.

aentan avatar Jun 08 '23 08:06 aentan

Hi @aentan, this is not yet supported but it is a feature that we plan to add.

HayesGordon avatar Jun 09 '23 08:06 HayesGordon

Hello @aentan meanwhile it is developed, you can achieve what you want by copying what's in this .rev file found in [this discord discussion](https://discord.com/channels/532365473602600965/1083029671551172809 I did it with our rive animations and it worked well on our side 👍

PierreCapo avatar Jun 29 '23 12:06 PierreCapo