Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
stonecold123 authored Feb 24, 2017
1 parent 4bc28b0 commit 77d7785
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ declare module 'native-base' {
* Default: true
*/
iconLeft?: boolean,
icon?:boolean,
button?: boolean,
/**
* Helps to organize and group the list items.
Expand Down Expand Up @@ -442,7 +443,8 @@ declare module 'native-base' {
*/
interface Icon {
name: string,
style?: React.TextStyle
style?: React.TextStyle,
active?:boolean
}
/**
* see Widget Icon.js
Expand Down Expand Up @@ -539,6 +541,23 @@ declare module 'native-base' {
springTension?: number,
springFriction?: number
}

interface Item {
fixedLabel?:boolean,
floatingLabel?:boolean,
inlineLabel?:boolean,
stackedLabel?:boolean,
placeholderLabel?:boolean,
bordered?:boolean,
underline?:boolean,
rounded?:boolean,
disabled?: boolean,
error?: boolean,
placeholder?:string,
secureTextEntry?:boolean,
success?: boolean,
last?:boolean,
}
}

// Export definitions
Expand Down Expand Up @@ -763,4 +782,9 @@ declare module 'native-base' {
* It can contain any combination of text and icons, and is a popular method for enabling mobile navigation.
*/
export class Tabs extends React.Component<NativeBase.Tabs, any> { }
/**
* NativeBase.Item
*/
export class Item extends React.Component<NativeBase.Item, any> { }

}

0 comments on commit 77d7785

Please sign in to comment.