UNPKG

react-native-table-component-2

Version:

Build table for react native. Forked from the original 'react-native-table-component' to fix support for newer versions of react-native-web. Not actively maintained/supported.

24 lines (23 loc) 741 B
import { ReactText } from 'react'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; export declare type Data = JSX.Element | ReactText[][] | ReactText[] | ReactText; export interface DefaultProps<DataType extends Data> { style?: StyleProp<ViewStyle>; textStyle?: StyleProp<TextStyle>; borderStyle?: ViewStyle; data: DataType; width?: ReactText; height?: ReactText; flex?: number; heightArr?: number[]; widthArr?: number[]; flexArr?: number[]; } export declare type TableComponent = React.FC<{ style?: StyleProp<ViewStyle>; borderStyle?: ViewStyle; }>; export declare type TableProps = React.PropsWithChildren<{ style?: StyleProp<ViewStyle>; borderStyle?: ViewStyle; }>;