title: How to get the value ot TextInput and add to Flatlist in React Native
body: <p>I want to get the value of TextInput and add to my flatList:
  here is my TextInput</p>
  <pre><code>
          &lt;TextInput style={styles.input}
            underlineColorAndroid=&quot;transparent&quot;
            placeholder=&quot;   Money &quot;
            placeholderTextColor=&quot;#9a73ef&quot;
            autoCapitalize=&quot;none&quot;
            keyboardType='numeric'
            value = 'money'
          /&gt;
  </code></pre>
  <p>This is my Button that will add the value of TextInput into my Flatlist</p>
  <pre><code> &lt;Button
            title=&quot;Add me&quot;
            color=&quot;#841584&quot;
            accessibilityLabel=&quot;Learn more about this purple button&quot;
          /&gt;
  
          &lt;FlatList
            data={DATA}
            renderItem={({ item }) =&gt; (&lt;Text style = {styles.item}&gt; {item.name}&lt;/Text&gt;)} /&gt;
  
  
      &lt;/View&gt;
  </code></pre>