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.
28 lines (24 loc) • 719 B
text/typescript
import { type } from 'os';
import { ReactText } from 'react';
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
export 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 type TableComponent = React.FC<{
style?: StyleProp<ViewStyle>;
borderStyle?: ViewStyle;
}>;
export type TableProps = React.PropsWithChildren<{
style?: StyleProp<ViewStyle>;
borderStyle?: ViewStyle;
}>;