-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.d.ts
More file actions
37 lines (29 loc) · 957 Bytes
/
index.d.ts
File metadata and controls
37 lines (29 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import React, {FunctionComponent} from 'react';
import {StyleProp, ViewStyle} from 'react-native';
interface ItemData {
isFixed?: boolean;
}
type GroupData = {
[groupToItemsKey in keyof string]: ItemData[];
} & {
isFixed?: boolean;
};
interface NestedDNDProps {
groups: GroupData[];
updateGroups: (groups: GroupData[]) => void;
renderItem: (item: ItemData) => React.ReactElement<any>;
renderGroupHeader: (group: GroupData) => React.ReactElement<any>;
groupKeyExtractor?: (group: GroupData) => string;
itemKeyExtractor?: (item: ItemData) => string;
groupToItemsKey?: string;
onGroupHeaderPress?: (group: GroupData) => void;
onItemPress?: (item: ItemData) => void;
movedWrapStyle?: StyleProp<ViewStyle>;
ghostStyle?: StyleProp<ViewStyle>;
renderHeaderView?: any;
headerViewHeight?: number;
renderBottomView?: any;
bottomViewHeight?: number;
}
type NestedDND = FunctionComponent<NestedDNDProps>;
export {NestedDND};