import React from 'react'; import { View } from 'react-native'; import TableCell from './TableCell'; import type { TableRowProps } from './types'; const TableRow = (viewProps: TableRowProps) => { const { data, isLastRow, columnsWidth, columnsAlign, borderColor = '#333', borderWidth = 1, style, textStyle, } = viewProps; return ( {data.map((dataItem, dataIndex) => { return ( dataIndex ? columnsAlign[dataIndex] : undefined } data={dataItem} /> ); })} ); }; export default TableRow;