title: Font Awesome & Unicode & Variable in React-Native
body: <p>I want to show fontAwesome icons in my app.</p>
  
  <p>I can show with string type icons like this:</p>
  
  <p><code>&lt;Text style={{fontFamily: 'fontAwesome'}}&gt;&amp;#xf0e8;&lt;/Text&gt;</code>
  print icon. Working well.</p>
  
  <p>But I need to show icons with variable like this:</p>
  
  <pre><code>let icon2 = "&amp;#xf0e8;";
  &lt;Text style={{fontFamily: 'fontAwesome'}}&gt;{icon}&lt;/Text&gt;
  </code></pre>
  
  <p>then print to screen <code>&amp;#xf0e8;</code> not icon.</p>
  
  <p>I share with you expo snack link. You can try this easily.</p>
  
  <p><a href="https://snack.expo.io/@wyrustaaruz/Zm9udG" rel="nofollow noreferrer">https://snack.expo.io/@wyrustaaruz/Zm9udG</a></p>