Closed tomsotte closed 4 years ago
I'd suggest using 6-char hex colors then. Is there any reason you MUST use 3-char?
Not in particular, but react native lets you use that 3-char format so I tried to use the same color variable I use everywhere else in the app and I couldn't figure out why it didn't work, my bad. A simple note on the README stating that 3-char colors aren't supported might be enough.
i got this issus in 2023 and spend half a day to figure out why, a little tips in readme as @tomsotte says would be nice.
thanks for your work
When I set the navbar color via 3-char hex color, like
#fff
, the app crashed with the error below (from logcat):It appears Android Color.parseColor does not support that kind of format for colors. https://developer.android.com/reference/android/graphics/Color#parseColor(java.lang.String)