AsyncStorage is an unencrypted, asynchronous, persistent, key-value storage system that is global to the app.
It should be used instead of LocalStorage.
It is recommended that you use an abstraction on top of AsyncStorage instead of AsyncStorage directly for anything more than light usage since it operates globally.
Installation Asyncstorage Docs
Install module asyncstorage
# with npm
npm install @react-native-async-storage/async-storage
# with yarn
yarn add @react-native-async-storage/async-storage
if finished install asyncstorage.
next step, type command for install package
npm install
and run project using command
# with npm
npm run start
# with yarn
yarn run start
yarn start
😊Dont Forget to Rest