title: Mapping an state array in React Native
body: <p><a href="https://i.stack.imgur.com/I5qDL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I5qDL.png" alt="enter image description here"></a>I am trying to map through the array that was stored in the state. The arrray had datas from firebase. I did console.log to see the what the state contains and it has the values but just not mapping it.</p>
  
  <pre><code>render() {
      let test = this.state.subjects.map(sub =&gt; {
        return (
          &lt;View&gt;
            &lt;Text style={{ textAlign: "center" }}&gt;{sub}&lt;/Text&gt;
          &lt;/View&gt;
        );
      });
      return &lt;ScrollView style={{ marginTop: 30 }}&gt;{test}&lt;/ScrollView&gt;;
    }
  }
  </code></pre>