title: How can I resolve this warning ? "Encountered Two Children with the same key, `.$1/.$2`"
body: <p>I am making a select input in my react native App using import &quot;react-native-form-select-picker&quot;, And the code is working fine still it is giving me a warning as &quot;Encountered Two Children with the same key, `.$1/.$2&quot;.  So how can I fix this Issue Can someone please help? Below is my lines of code:</p>
  <pre><code>import React, { useState } from 'react';
  import { View, Text, StyleSheet, TouchableOpacity, } from 'react-native';
  import SelectPicker from 'react-native-form-select-picker';
  
  const options = [&quot;Aadhar Card&quot;, &quot;Bank Passbook&quot;, &quot;Driving Licence&quot;, &quot;Pan Card&quot;];
  
  // create a component
  const UpdateDocument = ({ navigation }) =&gt; {
  
      const [selected, setSelected] = useState();
  
      return (
          &lt;View style={styles.container}&gt;
              &lt;View style={styles.docBox}&gt;
                  &lt;SelectPicker
                      placeholder=&quot;Select document to Update&quot;
                      style={styles.selectBox}
                      onValueChange={(value) =&gt; {
                          // Do anything you want with the value. 
                          // For example, save in state.
                          setSelected(value);
                      }}
                      selected={selected}
                  &gt;
  
                      {Object.values(options).map((val, index) =&gt; (
                          &lt;SelectPicker.Item label={val} value={val} key={} /&gt;
                      ))}
  
                  &lt;/SelectPicker&gt;
              &lt;/View&gt;
          &lt;/View&gt;
      );
  };
  
  // define your styles
  const styles = StyleSheet.create({
      container: {
          flex: 1,
          backgroundColor: '#fff',
      },
      docBox: {
          paddingVertical: 10,
          paddingHorizontal: 10,
          borderBottomColor: '#aaa',
          borderBottomWidth: 1,
      },
      selectBox: { borderColor: '#555', borderWidth: 1, borderRadius: 4, }
  });
  
  //make this component available to the app
  export default UpdateDocument;
  </code></pre>