export const getAllKeys = async () => { let keys = [] try { keys = await AsyncStorage.getAllKeys() } catch(e) { console.log(e) } console.log("get all keys") console.log(keys) //burada doğru keyler dönüyor return keys; } //HOME.JS İÇİNDE FONKSİYON ÇAĞRISI : // let allIDs = []; //ŞUNLAR DENEDİKLERİM : /* getAllKeys().then((products) => { allIDs = products; }); */ //allIDs = getAllKeys(); allIDs = await getAllKeys(); console.log("all id s : "); console.log(allIDs) // ss'deki sonucun döndüğü yer