|
1 | | -import * as React from 'react'; |
2 | | -import { StyleProp, ViewStyle, ViewProps } from 'react-native'; |
3 | | -import { IconSource, ThemeShape } from '../types'; |
4 | | -import { TouchableRippleProps } from './TouchableRipple'; |
5 | | - |
6 | | -export interface DataTableHeaderProps extends ViewProps { |
7 | | - children: React.ReactNode; |
8 | | - theme?: ThemeShape; |
9 | | -} |
10 | | - |
11 | | -export interface DataTableTitleProps extends TouchableRippleProps { |
12 | | - right?: boolean; |
13 | | - sortDirection?: 'ascending' | 'descending'; |
14 | | - theme?: ThemeShape; |
15 | | -} |
16 | | - |
17 | | -export interface DataTableRowProps extends TouchableRippleProps { |
18 | | - theme?: ThemeShape; |
19 | | -} |
20 | | - |
21 | | -export interface DataTableCellProps extends TouchableRippleProps { |
22 | | - right?: boolean; |
23 | | - style?: StyleProp<ViewStyle>; |
24 | | -} |
25 | | - |
26 | | -export interface DataTablePaginationProps { |
27 | | - page:number; |
28 | | - numberOfPages:number; |
29 | | - label?: React.ReactNode; |
30 | | - onPageChange: (value: number) => any; |
31 | | - theme?: ThemeShape; |
32 | | -} |
33 | | - |
34 | | -export interface DataTableProps extends ViewProps { |
35 | | - children: React.ReactNode; |
36 | | -} |
37 | | - |
38 | | -export declare class DataTable extends React.Component<DataTableProps> { |
39 | | - static Header: React.ComponentClass<DataTableHeaderProps>; |
40 | | - static Title: React.ComponentClass<DataTableTitleProps>; |
41 | | - static Row: React.ComponentClass<DataTableRowProps>; |
42 | | - static Cell: React.ComponentClass<DataTableCellProps>; |
43 | | - static Pagination: React.ComponentClass<DataTablePaginationProps>; |
44 | | -} |
| 1 | +import * as React from 'react'; |
| 2 | +import { StyleProp, ViewStyle, ViewProps } from 'react-native'; |
| 3 | +import { IconSource, ThemeShape } from '../types'; |
| 4 | +import { TouchableRippleProps } from './TouchableRipple'; |
| 5 | + |
| 6 | +export interface DataTableHeaderProps extends ViewProps { |
| 7 | + children: React.ReactNode; |
| 8 | + theme?: ThemeShape; |
| 9 | +} |
| 10 | + |
| 11 | +export interface DataTableTitleProps extends TouchableRippleProps { |
| 12 | + numeric?: boolean; |
| 13 | + sortDirection?: 'ascending' | 'descending'; |
| 14 | + theme?: ThemeShape; |
| 15 | +} |
| 16 | + |
| 17 | +export interface DataTableRowProps extends TouchableRippleProps { |
| 18 | + theme?: ThemeShape; |
| 19 | +} |
| 20 | + |
| 21 | +export interface DataTableCellProps extends TouchableRippleProps { |
| 22 | + numeric?: boolean; |
| 23 | + style?: StyleProp<ViewStyle>; |
| 24 | +} |
| 25 | + |
| 26 | +export interface DataTablePaginationProps { |
| 27 | + page:number; |
| 28 | + numberOfPages:number; |
| 29 | + label?: React.ReactNode; |
| 30 | + onPageChange: (value: number) => any; |
| 31 | + theme?: ThemeShape; |
| 32 | +} |
| 33 | + |
| 34 | +export interface DataTableProps extends ViewProps { |
| 35 | + children: React.ReactNode; |
| 36 | +} |
| 37 | + |
| 38 | +export declare class DataTable extends React.Component<DataTableProps> { |
| 39 | + static Header: React.ComponentClass<DataTableHeaderProps>; |
| 40 | + static Title: React.ComponentClass<DataTableTitleProps>; |
| 41 | + static Row: React.ComponentClass<DataTableRowProps>; |
| 42 | + static Cell: React.ComponentClass<DataTableCellProps>; |
| 43 | + static Pagination: React.ComponentClass<DataTablePaginationProps>; |
| 44 | +} |
0 commit comments