Skip to content

Commit

Permalink
Add keyboard callbacks to TypeScript type definition (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr authored and alvaromb committed Oct 11, 2018
1 parent eea7422 commit df981fd
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,48 @@ interface KeyboardAwareProps {
* @memberof KeyboardAwareProps
*/
keyboardOpeningTime?: number

/**
* Callback when the keyboard will show.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardWillShow?: (frames: Object) => void

/**
* Callback when the keyboard did show.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardDidShow?: (frames: Object) => void

/**
* Callback when the keyboard will hide.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardWillHide?: (frames: Object) => void

/**
* Callback when the keyboard did hide.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardDidHide?: (frames: Object) => void

/**
* Callback when the keyboard frame will change.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardWillChangeFrame?: (frames: Object) => void

/**
* Callback when the keyboard frame did change.
*
* @param frames Information about the keyboard frame and animation.
*/
onKeyboardDidChangeFrame?: (frames: Object) => void
}

interface KeyboardAwareListViewProps
Expand Down

0 comments on commit df981fd

Please sign in to comment.