We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f4fb1 commit 0646472Copy full SHA for 0646472
src/useKeyboard.ts
@@ -15,7 +15,7 @@ const initialValue = {
15
export function useKeyboard() {
16
const [shown, setShown] = useState(false)
17
const [coordinates, setCoordinates] = useState<{
18
- start: ScreenRect
+ start: undefined | ScreenRect
19
end: ScreenRect
20
}>(initialValue)
21
const [keyboardHeight, setKeyboardHeight] = useState<number>(0)
0 commit comments