title: How do I set multiple values within Asyncstorage
body: <p>How do I set multiple values within Asyncstorge?.Because I'm trying to set <code>token</code> and <code>user_id</code> .These are the server response values.
  This is how response looks like</p>
  
  <p><strong>json</strong></p>
  
  <pre><code>{ error: 0,
    data: 'User registered Successfully',
    userData:
     { pwd: 'lmlmlm',
       phone_no: '9898989',
       user_name: '',
       status: 1,
       date: 2018-10-24T07:12:20.656Z },
    user_id: 60,
    token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.' }
  </code></pre>
  
  <p>And in react native I've written like this after user registrtaion.</p>
  
  <pre><code>.then((response) =&gt; response.json())
              .then((responseData) =&gt;
              {
                  console.log(responseData);
                   AsyncStorage.setItem('id_token', responseData.token),
                   AsyncStorage.setItem('user_id', responseData.user_id),
                      Actions.firstScreen();
  
                      });
  </code></pre>
  
  <p>And in my home page I'm accessing the <code>token</code> and <code>user_id</code> within <code>AsyncStorage</code> as </p>
  
  <pre><code> AsyncStorage.getItem('id_token').then((usertoken) =&gt;{
                  this.setState({'id_token' : usertoken});
                  console.log(usertoken);
              })
              AsyncStorage.getItem('user_id').then((uid) =&gt; {
                this.setState({'user_id': uid});
                console.log(uid);
              })
  </code></pre>
  
  <p>But I'm getting only the token , consoled result of <code>uid</code> is getting as null.But when I consoled the <code>responseData</code> I've values within it.Please help me </p>