title: How to add values dynamically in DropDownPicker dynamically React Native
body: <p>In DropDownPicker I am trying to add map dynamically which's failing in syntax. <strong>Need help with the syntax as it looks logically correct to me</strong>. I was able to find loop example for Picker but not for DropDownPicker</p>
  <pre><code>&lt;View&gt;
  &lt;DropDownPicker
            items={[
              mealItems.map((option) =&gt;(
               {
                label: {option.name}, // Getting error here
                value:{option.id},
                icon: () =&gt; (                  
                  &lt;View style={styles.arrowAdd}&gt;
                    &lt;FoodPlus /&gt;
                  &lt;/View&gt;
                ),
              }, //Getting error here to remove the comma but that's required 
              )
              )
            ]
            }
  //Dropdown attributes such as  style etc
  /&gt;
        &lt;/View&gt;
  </code></pre>
  <p>My response data that I am trying to loop looks like following:</p>
  <pre><code>[{&quot;id&quot;: 1, &quot;name&quot;: &quot;Breakfast&quot;}, {&quot;id&quot;: 2, &quot;name&quot;: &quot;Morning Snack&quot;}, {&quot;id&quot;: 3, &quot;name&quot;: &quot;Lunch&quot;}, {&quot;id&quot;: 4, &quot;name&quot;: &quot;Evening Snack&quot;}, {&quot;id&quot;: 5, &quot;name&quot;: &quot;Dinner&quot;}] 
  </code></pre>