title: React - Native : possible unhandled promise rejection (id:120)
body: <p>i want to ask the solution for my problem. I have a code for countdown timer. When i create a code countdown timer without storing the variabel to my storage it's not gave me a problem. but, when i adding the code for storing di counter to the storage i have a problem warning &quot;possible unhandled promise rejection (id:120)&quot; and this is not storing the value in the variable counter. How to solve this problem when the counter is decrease, and every counter decreasing, it will store to my storage? here my code below</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>componentDidMount = async() =&gt;{
      this.hitungMundur()
    }
  
    async hitungMundur(){
      let counter = 10
  
      const interval = setInterval(async() =&gt;{
        console.log(counter)
        counter--
  
        await AsyncStorage.setItem('durasi', counter)
        if(counter &lt; 0){
          clearInterval(interval)
          console.log('stoped')
        }
      }, 1000)
    }</code></pre>
  </div>
  </div>
  </p>