title: Unable to Update Array object with a new Textinput data in React Native
body: <p>I am new to react-native hooks. I am trying to update my array object by whatever the user types in the TextInput field. How can I do it??</p>
  
  <p>where's my state and my folder array object</p>
  
  <pre><code>    const [folder, emptyFolder] = useState([]);
  
        Array [
    Object {
      "id": "0.017859040901406997",
      "value": "Bar",
    },
  ]
  </code></pre>
  
  <p>where's my TextInput. {itemData.item.value} is where I am displaying the name "Bar".
  I want to update my array with a new array TextInput name. That name is whatever the user enters. Thanks In advance.</p>
  
  <pre><code>    const handlePress = () =&gt; {
         ... { map the array[value] an display the new array[value]} ???
        };
  
  &lt;FlatList
      style={{ margin: 2 }}
      data={folderToDisplay}
      //keyExtractor={(item) =&gt; item.id}
      numColumns={4}
      renderItem={(itemData) =&gt; {
        return (
          &lt;View style={styles.homeRowFolder}&gt;
            &lt;View style={styles.iconAndText}&gt;
                &lt;Text style={styles.textdisplay}&gt;
                  {itemData.item.value}
                &lt;/Text&gt;
            &lt;/View&gt;
          &lt;/View&gt;
        );
      }}
    /&gt;
  </code></pre>