title: Why can't we check a style attribute of a react-native app?
body: <p>I wanted to check whether color is white of an element, as follows,</p>
  
  <pre><code>if(styles.background=='white')
  console.log("ok")
  
  console.log(styles.background=='white') --&gt; was false [1]
  </code></pre>
  
  <p>why [1] returns false?</p>