Promises in AsyncStorage from React Native
<p>Wrinting a lttle wrapper around AsyncStorage from React Native, i have a little problem with the getAllKeys function.</p>

<p>What is wrong in this snipped, if i want retrive all the values?    </p>

<pre><code>getAll: function(){
    var items = ["hh"];
    AsyncStorage.getAllKeys()
        .then( ks =&gt; {
            ks.forEach( k =&gt; {
            AsyncStorage.getItem(k)
                .then( v =&gt; items.push(v)); //console.log(k, v));
        });
        });
        return items;
  },
</code></pre>

<p>Thanks very much</p>