event on row press react native

458 views Asked by At

How to do any action like alert or navigate to another screen on row press using 'react-native-table-component' I need your help I use the followning code

   import { Table, Row, TouchableRow } from "react-native-table-component";

    return (
       <>
         <Table borderStyle={styles.border} style={styles.table}>
           {/* Header row */}
           <Row
             data={}
             style={}
             textStyle={}
           />
   
           {/* Data rows */}
           {data.map((entry, index) => (
             
             <Row
               key={index}
               data={}
               style={}
               textStyle={}
             >
               </Row>
             
           ))}
         </Table>
       </>
     );
   };

1

There are 1 answers

0
Hazem AbdelHamid On BEST ANSWER

I just put {/* Data rows */} between and it works fine