title: Populating picker in react native through fetch from the server
body: <p>I am trying to get picker values from the server to my react-native project. this is my JSON data. How do I fetch it for the picker component? I tried all d methods from web results. but I get only a blank screen. Kindly please help</p>
  
  <pre><code>{
  "MFBasic": {
      "SkinTones": "DARK,FAIR,VFAIR",
      "Build": "SLIM,ATHLETIC,PLUMPY",
      "Gender": "F,M,T",
      "Genre": "ACTION,COMEDY,DRAMA",
      "Languages": "ENG,HINDI,TAM",
      "MediaModes": "ADS,MOVIES,SHORTFILMS",
      "Tags": "BIKES,HOME,JEWELLARY"
  },
  "Result": "Successfully Loaded MF Basic Details",
  "Code": 100
  </code></pre>
  
  <p>}</p>
  
  <p>App.js</p>
  
  <pre><code>export default class App extends Component {
  
  
      state = {
  
          PickerValueHolder:[],
          Gender:'',
          }
     componentDidMount() {
        fetch('https://movieworld.sramaswamy.com/GetMFBasicDetails.php', {
         method: 'POST',
         headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json',
          },
  
          }).then((response) =&gt; response.json())
          .then((responseJson) =&gt; {
  
             let PickerValueHolder = responseJson.MFBasic;
             this.setState({ PickerValueHolder }); // Set the new state
  
             }).catch((error) =&gt; {
             console.error(error);
            });
           }
  
  
  
       render() {
          return (
            &lt;View style = {styles.MainContainer}&gt;
             {&lt;Picker
              selectedValue={this.state.Gender}
              onValueChange={(itemValue, itemIndex) =&gt; 
              this.setState({Gender:itemValue})} &gt;
              { this.state.PickerValueHolder.map((item, key)=&gt;
              &lt;Picker.Item label={item.Gender} value={item.Gender} key={key}/&gt;
              )}
           &lt;/Picker&gt;}
          &lt;/View&gt;
         );
        }
       }
  </code></pre>
  
  <p>above code is my app.js file. but it returns nothing to the picker.help me please. Thank u.</p>