There were two problems with your code
-
You were setting the background color in your native library to ‘color’ instead of using the value of the variable color.
-
Your background image was preventing your background color from being applied. Best to use
background
property instead ofbackground-color
orbackground-image
to handle both cases.
Here is a fixed clone link