remove item from AsyncStorage

React Native’s AsyncStorage provides a light storage system where you can both store and retrieve stored items. But what happens when you no longer need these items in the storage?

React Native provides a way for you to remove them as well.

How to Remove Items

 removeItem = async() => {
          AsyncStorage.removeItem('email')
          .then(
              res => {
                  //do your logic here
              }
          )
        }

Author

Leave a Reply

Your email address will not be published. Required fields are marked *