title: (React Native) Component Exception - Text Strings must be rendered within a <Text> component
body: <p>I'm developing an app in React Native, and I have a bit of code that works on web and iOS, but not for android. I keep getting the error stated in the title and I'm not sure why... Basically the function takes an array of booleans, and returns a graphical representation of what those flags represent(A password policy). False flags return red text and true flags return green text. The app compiles and doesn't crash until the function is run. Please advise.</p>
  <pre><code>function displayPwPolicy(flags) {
      var policies = [
          &quot;Be 8~256 characters long&quot;,
          &quot;Have uppercase character(s)&quot;,
          &quot;Have lowercase character(s)&quot;,
          &quot;Have numerical character(s)&quot;,
          &quot;Have special character(s)&quot;,
          &quot;Have no invalid characters&quot;
      ]
      
      return (
          &lt;View&gt;
              &lt;Text style={styles.homePwPolicy}&gt;*Your password must:&lt;/Text&gt;
              {
                  policies.map( (policy, i) =&gt; 
                      &lt;Text key={'policy00' + i} style={{ color: flags[i] ? 'green' : 'red' }}&gt;
                          {(flags[i] ? '✔':'✘') + '\t ' + policy}
                      &lt;/Text&gt;
                  )
              }
          &lt;/View&gt;
      )
  }
  </code></pre>
  <p>Call Stack: <a href="https://photos.app.goo.gl/1G2JKUiYJqsLVHoz5" rel="nofollow noreferrer">https://photos.app.goo.gl/1G2JKUiYJqsLVHoz5</a></p>
  <p><strong>Edit 1:</strong> This is the function call. The app works fine if the line is removed</p>
  <pre><code>&lt;TextInput
      style        = {styles.homeInput}
      value        = {userLast}
      placeholder  = 'Last Name'
      onChangeText = {last =&gt; setUserLast(last)}
  /&gt;
  
  { pwPolicyShown &amp;&amp; displayPwPolicy(pwPolicyFlags) }
  
  &lt;TouchableOpacity style={styles.homeButtons}&gt;
      &lt;Text style={styles.homeButtonText}&gt;
          CREATE ACCOUNT
      &lt;/Text&gt;
  &lt;/TouchableOpacity&gt;
  </code></pre>