vydimitrov / react-countdown-circle-timer

Lightweight React/React Native countdown timer component with color and progress animation based on SVG
MIT License
692 stars 87 forks source link

Added transparent as a valid color #200

Closed RareSecond closed 2 years ago

RareSecond commented 2 years ago

For my case, I wanted to have the trailColor be transparent as it'll be used as an overlay. However, TS was complaining that transparent was not a valid color value, while it does actually work.

vydimitrov commented 2 years ago

Hey @JDansercoer, thanks for the PR :) Have you tried using rgba(0,0,0,0)? That is going to work. By the way, do you know if the transparent keyword is accepted by React Native as a valid value?

vydimitrov commented 2 years ago

I will close this PR since we can achieve what you want with the current API.