score:2

keys.forEach execute the code in its own scope (in its own callback function), and that breaks your async / await pair.

Do this instead:

for (let inKey of keys) {
    let obj = await AsyncStorage.getItem(inKey);
    obj = JSON.parse(obj);
    data.push(obj);   
}

If you really want forEach, you have to write your own version that returns Promise, so you can hook await on it for example:

await keys.awaitableForEach(async function(inKey) {

Related Query

More Query from same tag