We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4196613 commit 18c376cCopy full SHA for 18c376c
1 file changed
src/useKeyboard.ts
@@ -1,9 +1,10 @@
1
import {useEffect, useState} from 'react'
2
import {Keyboard, KeyboardEventListener, ScreenRect} from 'react-native'
3
4
+const emptyCoordinates = Object.freeze({ screenX: 0, screenY: 0, width: 0, height: 0 })
5
const initialValue = {
- start: {screenX: 0, screenY: 0, width: 0, height: 0},
6
- end: {screenX: 0, screenY: 0, width: 0, height: 0},
+ start: emptyCoordinates,
7
+ end: emptyCoordinates,
8
}
9
10
export function useKeyboard() {
0 commit comments