'Is it possible to verify the color of an element using Detox?

Let's say I found an element by id and want to check its color, how would one do it? I tried:

const attr = await element(by.id("the id")).getAttributes();
console.log(attr); 

this prints out the height, width, etc. but not the color.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source