title: React Native TypeError undefined is not a function (near '...data.map...')
body: <p>I'm trying to load data from firebase in react native into a table but I keep getting this error. It works fine with any two dimensional array but when I load the 2d array from firebase the error comes up.</p>
  <pre><code>async function get_passwords(user) {
    const check_user = db.collection(&quot;users&quot;).doc(user);
  
    const doc = await check_user.get();
  
    const entries = Object.entries(doc.data());
  
    return entries;
  }
  function InfoScreen({ navigation, route }) {
    const { param1, param2 } = route.params;
    const stated = {
      tableHead: [&quot;Info&quot;, &quot;Password&quot;],
  
      tableData: [
        [&quot;1&quot;, &quot;2&quot;],
        [&quot;a&quot;, &quot;b&quot;],
        [&quot;1&quot;, &quot;2&quot;],
        [&quot;a&quot;, &quot;b&quot;],
      ],
    };
  
    let entries = get_passwords(param1);
  
    return (
      &lt;View&gt;
        &lt;Table&gt;
          &lt;Row data={stated.tableHead} /&gt;
          &lt;Rows data={entries} /&gt;
        &lt;/Table&gt;
      &lt;/View&gt;
    );
  }
  </code></pre>