title: How to fix java.lang.Double cannot be cast to java.lang.String in React Native
body: <p>I have problem regarding on my AsyncStorage.getItem. I have module which is the login, where I need to set the item inside the storage, after I get the result there is an yellow message below that I have Error: java.lang.Double cannot be cast to java.lang.String I didn't know where the error came.</p>
  
  <p><a href="https://i.stack.imgur.com/YGBMt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YGBMt.png" alt="Error"></a></p>
  
  <p>I will show you guys, my function to set the item in the storage.</p>
  
  <pre><code>     if(response.status == '200')
       {
            AsyncStorage.setItem('authorization_code',access_token);
            AsyncStorage.setItem('authorization_expiration',expires_in);
            AsyncStorage.setItem('authorization_type',token_type);
  
            //let token = AsyncStorage.getItem(JSON.stringify("authorization_code"));
             AsyncStorage.getItem('authorization_code', (err, result) =&gt; {
              alert(result);
            });
  
       }
  </code></pre>