title: Loading Json response to a dropdown in react native
body: <p>I'm using a material dropdown in my application</p>
  
  <pre><code>&lt;Dropdown 
    baseColor='white'
    itemColor='white'
    label='Select Cluster'
  /&gt;
  </code></pre>
  
  <p>I fetch JSON object like this and it works fine.</p>
  
  <pre><code>  fetch('url', {  
      method: 'POST',
      headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        username : "admin"
      })
    }).then((response) =&gt; response.json())
    .then((responseJson) =&gt; {
      var count = Object.keys(responseJson.message.Obj).length;
      for(var i=0;i&lt;count;i++){
        console.log(responseJson.message.Obj[i].name) // I need to add 
        //these names to dropdown
      }
    })
    .catch((error) =&gt; {
      console.error(error);
    });
  </code></pre>
  
  <blockquote>
    <p>Now I need to add the <code>responseJson.message.Obj[i].name</code> values to
    my dropdown list.</p>
  </blockquote>