title: How to implement AyncStorage in React Native to Save API Data and then use it throughout the App?
body: <p>I have implemented this code to store Response Data from API. But this is not working and there is no error also. Please help me   </p>
  
  <pre><code>.then((response) =&gt; response.json())
  
  .then((responseJson) =&gt; {
      //  console.log(responseJson);
      if (responseJson.res_status == "200") {
          //console.log(responseJson.res_data);       
  
          login = async () =&gt; {
  
              try {
                  await AsyncStorage.setItem("key", JSON.stringify(responseJson.res_data));
                  console.log(responseJson.res_data);
                  alert(responseJson.res_message);
                  console.log(responseJson.res_data);
                  Alert.alert('Saved', 'Successful');
              } catch (error) {
                  Alert.alert('Error', 'There was an error.')
                  alert("Unsuccessful");
              }
          }
  </code></pre>