chintan9 / plyr-react

A simple, accessible and customisable react media player for Video, Audio, YouTube and Vimeo

Home Page:https://github.com/chintan9/plyr-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

styles are not rerendering after state change

divyam234 opened this issue · comments

I am trying to change plyr color w.r.t dark / light mode using --plyr-color-main property by passing it in style prop . I have noticed that Plyr instance doesn't re-render if styles are changed . I am assuming it only changes when source and options property are changed.

Try wrapping it with a div, and change the style attribute of that div.