title: Create referece to items in list view on fly in functional component React native
body: <p>I am using ListItem from
  <a href="https://reactnativeelements.com/docs/2.3.2/listitem/#listitemcheckbox" rel="nofollow noreferrer">React Native Elements and have added a cheakbox</a>:</p>
  <pre><code>{items.map((l, i) =&gt; (
      &lt;ListItem.Swipeable
        key={i}
        &lt;ListItem.CheckBox
          iconType='material'
          checkedIcon='clear'
          uncheckedIcon='add'
          checkedColor='red'
          checked={false}
          //onPress={something} Need to write (call here) function here that will change checked state and do other stuff
        /&gt;
        &lt;ListItem.Content&gt;
          &lt;ListItem.Title&gt;
            {l.time}
          &lt;/ListItem.Title&gt;
        &lt;/ListItem.Content&gt;
        &lt;ListItem.Chevron /&gt;
      &lt;/ListItem.Swipeable&gt;
    ))}
  </code></pre>
  <p>I need to be able to press on the ListItem.CheckBox and change the checked state as well as get the value of the mapped <code>l</code> object.</p>
  <p>I know how to pass an <code>l</code> object from mapped array on the press to some function but don't know how to return value to <code>checked={false}</code>, and if it's possible do more stuff with this element.</p>
  <p>I have read a lot about refs and almost all are about class-based components and about manually creating refs for specific elements. The issue here is that this is an array of elements mapped into listview so this needs to be done on the flay.</p>
  <p>Keep in mind that examples from the documentation on the checkbox don't work in functional components.
  Example:   <a href="https://reactnativeelements.com/docs/checkbox#checked" rel="nofollow noreferrer">checked={this.state.checked}</a></p>
  <p>The point of this is to be able to select multiple items from the list and do some actions on objects that are tie to them.</p>
  <p>Any pointers are appreciated.</p>
  <p><strong>react-native: 0.63.2</strong></p>