“Como instalar asyncStorage in React Native” Respostas de código

AsyncStorage reagir nativo

yarn add @react-native-async-storage/async-storage // install by yarn
npm i @react-native-async-storage/async-storage // install by npm

// import
import AsyncStorage from '@react-native-async-storage/async-storage';


await AsyncStorage.setItem('@storage_Key', "value") // for store item
await AsyncStorage.removeItem('@storage_Key', "value") // for remove item
Bored Buzzard

Como instalar asyncStorage in React Native

npm i @react-native-community/async-storage
Wicked Wren

Respostas semelhantes a “Como instalar asyncStorage in React Native”

Perguntas semelhantes a “Como instalar asyncStorage in React Native”

Mais respostas relacionadas para “Como instalar asyncStorage in React Native” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código