title: React Native Paper - DataTable get row
body: <p>How can I get the selected row in React Native Paper DataTables?</p>
  <p>My DataTables row mapping:</p>
  <pre><code>{sortedItems.slice(from, to).map(item =&gt; (
      &lt;DataTable.Row key={item.id}&gt;
          &lt;DataTable.Cell&gt;{item.numero}&lt;/DataTable.Cell&gt;
          &lt;DataTable.Cell&gt;{item.data}&lt;/DataTable.Cell&gt;
          &lt;DataTable.Cell numeric&gt;{item.cliente}&lt;/DataTable.Cell&gt;
  
          &lt;DataTable.Cell numeric&gt;
              &lt;IconButton
                  icon=&quot;eye&quot;
                  onPress={() =&gt; navigation.navigate('Details', {/* HERE, HOW TO GET THE ELEMENT??? */}}
              /&gt;
          &lt;/DataTable.Cell&gt;
      &lt;/DataTable.Row&gt;
  ))}
  </code></pre>