title: React Native Picker not updating state
body: <p>I am developing a react native app. in that i am using picker to select item and update a state. M problem  is picker is not updating the state below is my code</p>
  
  <pre><code>constructor(props){
      super(props)
  
      this.state=({
          category:'',
      })
  
      getPickerElements() {
          var pickerArr = [];
          data.forEach((child, itemIndex) =&gt; {
              pickerArr.push(&lt;Picker.Item label={child.storeName} value={child.storeId} key={itemIndex}/&gt;)
          })
  
          return pickerArr;
      }
  
      &lt;Picker
          selectedValue={this.state.category}
  
          onValueChange={(itemvalue) =&gt;{
              this.setState({category: itemvalue})
          }}&gt;
  
          {/* -------------------Dynamic Picker Data------------------ */}
          {this.getPickerElements()}
          {/* -------------------------------------------------------- */}
      &lt;/Picker&gt;
  </code></pre>
  
  <blockquote>
    <p>For the record the 'data'  have data and drop down working properly</p>
  </blockquote>