Skip to content

Commit df981fd

Browse files
karlvralvaromb
authored andcommitted
Add keyboard callbacks to TypeScript type definition (APSL#310)
1 parent eea7422 commit df981fd

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

index.d.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,48 @@ interface KeyboardAwareProps {
9595
* @memberof KeyboardAwareProps
9696
*/
9797
keyboardOpeningTime?: number
98+
99+
/**
100+
* Callback when the keyboard will show.
101+
*
102+
* @param frames Information about the keyboard frame and animation.
103+
*/
104+
onKeyboardWillShow?: (frames: Object) => void
105+
106+
/**
107+
* Callback when the keyboard did show.
108+
*
109+
* @param frames Information about the keyboard frame and animation.
110+
*/
111+
onKeyboardDidShow?: (frames: Object) => void
112+
113+
/**
114+
* Callback when the keyboard will hide.
115+
*
116+
* @param frames Information about the keyboard frame and animation.
117+
*/
118+
onKeyboardWillHide?: (frames: Object) => void
119+
120+
/**
121+
* Callback when the keyboard did hide.
122+
*
123+
* @param frames Information about the keyboard frame and animation.
124+
*/
125+
onKeyboardDidHide?: (frames: Object) => void
126+
127+
/**
128+
* Callback when the keyboard frame will change.
129+
*
130+
* @param frames Information about the keyboard frame and animation.
131+
*/
132+
onKeyboardWillChangeFrame?: (frames: Object) => void
133+
134+
/**
135+
* Callback when the keyboard frame did change.
136+
*
137+
* @param frames Information about the keyboard frame and animation.
138+
*/
139+
onKeyboardDidChangeFrame?: (frames: Object) => void
98140
}
99141

100142
interface KeyboardAwareListViewProps

0 commit comments

Comments
 (0)