Skip to content

Commit

Permalink
fix(types): adds keyExtractor props for list
Browse files Browse the repository at this point in the history
  • Loading branch information
sankhadeeproy007 committed Sep 9, 2019
1 parent ff89ff7 commit aab70c3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ declare module "native-base" {
* see Widget List.js
*/
interface List extends ReactNative.FlatListProperties<any>, Testable {
interface List extends ReactListViewProps, Testable {
listBorderColor?: string;
listDividerBg?: string;
listNoteColor?: string;
Expand All @@ -290,7 +290,11 @@ declare module "native-base" {
/**
* Array of data chunks to render iteratively.
*/
dataArray?: Array<any>;
dataArray?: Array<any>;
renderItem?: (
item: any,
index: string | number,
) => React.ReactElement<any>;
renderRow?: (
rowData: any,
sectionID: string | number,
Expand All @@ -300,7 +304,8 @@ declare module "native-base" {
dataSource?: ReactNative.ListViewDataSource;
disableLeftSwipe?: boolean;
disableRightSwipe?: boolean;
rightOpenValue?: number;
rightOpenValue?: number;
keyExtractor?: (item, index: number) => string;
leftOpenValue?: number;
renderRightHiddenRow?: (
rowData: any,
Expand Down

0 comments on commit aab70c3

Please sign in to comment.