title: How to pass prop's value into another prop of the same element in React Native?
body: <p>I am trying to pass the value of component's prop into another prop to style it, as below:</p>
  <pre><code>&lt;Component propOne={true} style={{ backgroundColor: propOne ? &quot;red&quot; : &quot;blue&quot; }} &gt;  
  &lt;/Component&gt;
  </code></pre>
  <p>Here propOne inside style prop is undefined.</p>
  <p>Any help?</p>