Skip to content

Commit

Permalink
fix(typescript): Add onClearText to searchbar definition
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie committed Dec 5, 2017
1 parent 719161a commit 1e06ae8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,11 @@ export interface SearchBarProps extends TextInputProperties {
*/
onChangeText?(text: string): void;

/**
* Method fired when text is cleared via the clear button
*/
onClearText?(): void;

/**
* Specify color, styling, or another Material Icon Name
* (Note: pressing on this icon clears text inside the searchbar)
Expand Down

0 comments on commit 1e06ae8

Please sign in to comment.