title: Declaring text to a variable shows Text string must be rendered within a <Text> component
body: <p>I have a React Native app where i'm mapping an array and assigning a text to a variable. But this throws the red screen showing 'Text string must be rendered within a Text component'. Here's where the error is throwing:</p>
  <pre class="lang-js prettyprint-override"><code>export default class index extends PureComponent {
    render() {
      const { payments } = this.props;
      const filteredPaymentList = this.props.payments
        const filteredPaymentList = payments.filter(item =&gt; {
        if (item.id === 'stripe') {
          item.id = 'stripe_connect';
        }
        return typeof Config.Payments[item.id] !== 'undefined';
      });
  
      return (
        &lt;View&gt;
          ...
        &lt;/View&gt;
      )
    }
  }
  </code></pre>
  <p>The if condition is where the error generates. Why is it happening? It's not even in the return section. Thanks in advance.</p>