Check out example codes for "js not able to read css". It will help you in understanding the concepts better.

Code Example 1

alert(getComputedStyle(document.getElementById("myDiv")).borderTopColor);

Learn ReactJs, React Native from akashmittal.com