import AsyncStorage from "@react-native-community/async-storage" code example Example: how to install asyncstorage in react native npm i @react-native-community/async-storage