Add item color assertion
Describe your idea
We could theoretically add that the getAttributes(), although, I'd like to take a guess that the RN-side prop doesn't necessarily easily map to the native equivalent (as we've seen in the past).
Nevertheless, this is definitely something we could accept as a feature.
@d4vidi Thank you for your quick answer. How about borderColor attribute? Generally in the css styles we can have a lot of attributes for verification.
If we do this, we are likely to handle everything color-related. That said, CSS and native-mobile are inherently different. We will extract what we can, and cannot guarantee that borderColor and such are accessible.
@d4vidi Thank you for your answer. In the future (plans) we will extract all attributes of an element which will appear for it. Am I right?
I don't have an ETA or anything. This issue has even been marked for contribution...
I see you do validation based on attributes, and that's ok. But if you see the need to do validation as in knowing if the color is a valid HTML color at all, you can use the validate-color npm package, currently the most feature-rich HTML color validator in town. 🎨 😊