AsyncStorage
Në shqip përdoret i njëjti emër.
ShpjegimiSQ
AsyncStorage është si localStorage i web-it, por për React Native: ruan tekst të thjeshtë në telefon që mbetet edhe pasi mbyllet aplikacioni. Është async, prandaj përdoret me await.
EnglishEN
AsyncStorage is like the web's localStorage, but for React Native: it stores simple text on the phone that survives after the app closes. It's async, so you use it with await.
Si ta mendosh
Si një fletore e vogël në xhepin e aplikacionit.
Lexoje në anglisht
Like a little notebook in the app's pocket.
Shembull kodijavascript
await AsyncStorage.setItem("gjuha", "sq");
const gjuha = await AsyncStorage.getItem("gjuha");