title: React Native(Expo) SecureStore getItemAsync
body: <p>I'm Using &quot;expo-secure-store&quot; to store JWT Token. when I try to get the data first it returns nothing and then the token.</p>
  <p>my code:</p>
  <pre><code>const [api, ApiReply] = React.useState(&quot;&quot;);
  const [isLoading, setLoading] = useState(true);
  
  const [token, setToken] = React.useState(&quot;&quot;);
  
  const clickHandler = () =&gt; {
      
      SecureStore.getItemAsync(&quot;secure_token&quot;).then((token) =&gt; setToken(token));
      console.log(token);
      
      var myHeaders = new Headers();
      myHeaders.append(&quot;Authorization&quot;, &quot;Bearer &quot; + token);
      
      var requestOptions = {
          method: &quot;GET&quot;,
          headers: myHeaders,
      };
  
      fetch(&quot;http://193.119.10.206:3000/auth/user/8&quot;, requestOptions)
          .then((response) =&gt; response.text())
          .then((result) =&gt; ApiReply(JSON.parse(result)))
          .catch((d) =&gt; {
              alert(&quot;500&quot;);
          })
          .finally(() =&gt; setLoading(false));
  
  };
  
  
  React.useEffect(() =&gt; { 
      clickHandler();
  }, [api])
  </code></pre>
  <p>I need the token when it's rendered. is there any solution or any alternative way?</p>