How to map json data with array in react native
<p>I have array like this in react native </p>

<pre><code> const data = [
    { key: 1, label: 'Service1'},
    { key: 2, label: 'Service2' },
    { key: 3, label: 'Service3' },
    { key: 4, label: 'Service4' },
    { key: 5, label: 'Service4' },
 ];
</code></pre>

<p>and json data:</p>

<pre><code> "services": [
    {
      "id": 1,
      "name": "Hotels",
    },
    {
      "id": 2,
      "name": "Embassies",
    },
 ]
</code></pre>

<p>How to <code>map</code> id to key and name to label???</p>