title: Why is my AsyncStorage.getItem().then undefined in React Native?
body: <p>I am using <code>AsyncStorage</code> to get information. I previously stored but for some strange reason it is saying <code>Cannot read property 'then' of undefined</code> even though I use this exact same AsyncStorage function in the function below and it works just fine.  Does anyone know why this isn't working here?</p>
  
  <pre><code>AsyncStorage.getItem(STORAGE_KEY_PRODUCT_SEARCH_CACHE).then((results) =&gt; {
      const searchCache = JSON.parse(results);
      let containedMatches = [];
  
      if (searchCache) {
          containedMatches = searchCache.filter((searchCacheItem, i) =&gt; {
              return searchCacheItem.includes(searchTerm);
          });    
      }
  
      dispatch({
              type: types.HANDLE_LOAD_PRODUCTS_SUCCESS,
              containedMatches
          }
      );
  });
  </code></pre>
  
  <p>Here is a video I made of this. Sorry you can hear my co-workers in the background so you'll have to mute it.</p>
  
  <p><a href="https://youtu.be/qwhywbD74l8" rel="nofollow noreferrer">https://youtu.be/qwhywbD74l8</a></p>