import type { ReactNode } from 'react'; import type { StyleProp, TextStyle, ViewStyle } from 'react-native'; interface CommonProps { borderColor?: string; borderWidth?: number; textStyle?: StyleProp; } export interface TableProps extends CommonProps { header: string[]; data: Array>; columnsWidth: Array; columnsAlign?: Array; containerStyle?: StyleProp; headerStyle?: StyleProp; headerTextStyle?: TextStyle; rowStyle?: StyleProp; onRowPressed?: (index: number) => void; } export interface TableRowProps extends CommonProps { data: Array; isLastRow: boolean; columnsWidth: Array; columnsAlign?: Array; style?: StyleProp; } export interface TableCellProps extends CommonProps { data: string | number | ReactNode; width: ViewStyle['width']; isLastCell: boolean; align?: TextStyle['textAlign']; }