title: Error relating to props and renderItem in react native flatlist
body: <p>im making a simple hello world type project in react native to familiarize myself with everything before I move onto my first project.</p>
  <p>The goal of this one was to display an array with a flatlist, but the kicker was I was going to slowly modularize it (ie. array is stored somewhere else, flatlist uses renderitem, renderitem is a seperate component, ect.)</p>
  <pre><code>import React, {useState} from 'react';
  import {StyleSheet, Text, View, FlatList} from 'react-native';
  
  function App () { 
    const [orders, setOrders] = useState([
      { customer: 'Clair' , age: 45, item: 'Corn', key: 0},
      { customer: 'Alex' , age: 39, item: 'Tomato', key: 1},
      ]);
    
  
      const renderer = ({order}) =&gt; 
      {
  
        const customerName = order.customer;
        const itemName = order.item;
  
        return(
          &lt;Text&gt;I am {customerName} and I would like a {itemName} please&lt;/Text&gt;
        );
      };
    
  
  return( 
  &lt;View style={styles.container}&gt;
    
  
    &lt;FlatList
      data={orders}
      renderItem={renderer}
      keyExtractor={(order) =&gt; order.key}
    
    /&gt;
    
    &lt;Text&gt; Hello World!!!! &lt;/Text&gt;
  &lt;/View&gt;
  
  );
  
  }
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      backgroundColor: '#fff',
    },
  
    orderContainer:
    {
      borderColor: 'black',
      borderWidth: 5,
      padding: 20,
      alignItems: 'center',
    },
  
    listText:
    {
      justifyContent: 'center',
      alignItems: 'center',
    }
  });
  
  export default App;
  </code></pre>
  <p>the first dummy mistake ive learned is that you shouldnt declare a &quot;component&quot; (in this case the renderer) inside the main return statement for the app</p>
  <p>now I just need to wrap my head around the prop handling. The error specifically has to do with the renderItem line. apparently the prop, which from my understanding should be one of the orders from the useState array, doesnt exist</p>
  <p>any help is appreciated :)</p>