title: How to update saved items AsyncStorage
body: <p><a href="https://i.stack.imgur.com/PhBd0.png" rel="nofollow noreferrer">ScreenShot of error when trying mergeItem</a> Im trying to save some recent searches that every user does in my app I setItem using Asyncstorage but this deletes the previous searches and mergeItem does not seem to work here and recommendations?    </p>
  
  <pre><code>_storeSearches = async (numberToSave) =&gt; {
  try {
   await AsyncStorage.mergeItem('SNUMBER', numberToSave);
  } catch (error) {
    // Error saving data
  }
  };
  
  _retrievePhoneNumberSearches = async () =&gt; {
  try {
    const value = await AsyncStorage.setItem('SNUMBER');
    if (value !== null) {
      return JSON.parse(value);
    }
    return [];
  } catch (error) {
    // Error retrieving data
  }
  };
  </code></pre>
  
  <p>The goal here is to have a list of the recent searches that the user did and update the list has he searches </p>