react-native-tableview-simple
Version:
React Native component for TableView made with pure CSS
43 lines (42 loc) • 1.75 kB
TypeScript
import React from 'react';
import { StyleProp, ViewStyle, TextProps, TextStyle } from 'react-native';
export interface CellInterface {
accessory?: false | 'DisclosureIndicator' | 'Detail' | 'DetailDisclosure' | 'Checkmark';
accessoryColor?: ViewStyle['borderColor'] | TextStyle['color'];
accessoryColorDisclosureIndicator?: ViewStyle['borderColor'];
allowFontScaling?: boolean;
backgroundColor?: ViewStyle['backgroundColor'];
cellStyle?: 'Basic' | 'RightDetail' | 'LeftDetail' | 'Subtitle';
cellAccessoryView?: React.ReactNode;
cellContentView?: React.ReactNode;
cellImageView?: React.ReactNode;
children?: React.ReactNode;
contentContainerStyle?: StyleProp<ViewStyle>;
detail?: string | number;
detailTextStyle?: StyleProp<TextStyle>;
detailTextProps?: TextProps;
disableImageResize?: boolean;
hideSeparator?: boolean;
highlightActiveOpacity?: number;
highlightUnderlayColor?: ViewStyle['backgroundColor'];
image?: React.ReactElement;
isDisabled?: boolean;
onPress?: () => void | Promise<void> | false;
onLongPress?: () => void | Promise<void> | false;
onPressDetailAccessory?: () => void | Promise<void> | false;
onUnHighlightRow?(): void;
onHighlightRow?(): void;
leftDetailColor?: TextStyle['color'];
rightDetailColor?: TextStyle['color'];
subtitleColor?: TextStyle['color'];
subtitleTextStyle?: StyleProp<TextStyle>;
testID?: string;
title?: React.ReactNode;
titleTextProps?: TextProps;
titleTextStyle?: StyleProp<TextStyle>;
titleTextStyleDisabled?: StyleProp<TextStyle>;
titleTextColor?: TextStyle['color'];
withSafeAreaView?: boolean;
}
declare const Cell: React.FC<CellInterface>;
export default Cell;