Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
William Candillon committed Dec 29, 2016
1 parent 561968a commit fed848a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions index.d.ts
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ declare module 'native-base' {
* see Widget Text.js * see Widget Text.js
*/ */
interface View extends React.ViewProperties { interface View extends React.ViewProperties {
padder?: boolean padder?: boolean,
} }
/** /**
* see Widget Text.js * see Widget Text.js
*/ */
interface Picker extends React.PickerProperties { } interface Picker extends React.PickerProperties {
iosHeader?: string,
inlineLabel?: boolean,
}
/** /**
* see Widget Text.js * see Widget Text.js
*/ */
Expand Down Expand Up @@ -179,17 +182,19 @@ declare module 'native-base' {
/** /**
* see Widget List.js * see Widget List.js
*/ */
interface List extends React.ListViewProperties { interface List {
listBorderColor?: string, listBorderColor?: string,
listDividerBg?: string, listDividerBg?: string,
listNoteColor?: string, listNoteColor?: string,
listItemPadding?: number, listItemPadding?: number,
listNoteSize?: number, listNoteSize?: number,
listItemHeight?: number, listItemHeight?: number,
inset?: boolean,
/** /**
* Array of data chunks to render iteratively. * Array of data chunks to render iteratively.
*/ */
dataArray?: Array<any>, dataArray?: Array<any>,
renderRow?: ( rowData: any, sectionID: string | number, rowID: string | number, highlightRow?: boolean ) => React.ReactElement<any>,
} }
/** /**
* see Widget ListItem.js * see Widget ListItem.js
Expand Down Expand Up @@ -601,6 +606,9 @@ declare module 'native-base' {
* NativeBase.Picker * NativeBase.Picker
*/ */
export class Picker extends React.Component<NativeBase.Picker, any> { } export class Picker extends React.Component<NativeBase.Picker, any> { }
namespace Picker {
export class Item extends React.Component<React.PickerItemProperties, any> { }
}
/** /**
* NativeBase.List * NativeBase.List
* *
Expand Down

0 comments on commit fed848a

Please sign in to comment.