Skip to content

Commit 18c376c

Browse files
committed
last change
1 parent 4196613 commit 18c376c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/useKeyboard.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import {useEffect, useState} from 'react'
22
import {Keyboard, KeyboardEventListener, ScreenRect} from 'react-native'
33

4+
const emptyCoordinates = Object.freeze({ screenX: 0, screenY: 0, width: 0, height: 0 })
45
const initialValue = {
5-
start: {screenX: 0, screenY: 0, width: 0, height: 0},
6-
end: {screenX: 0, screenY: 0, width: 0, height: 0},
6+
start: emptyCoordinates,
7+
end: emptyCoordinates,
78
}
89

910
export function useKeyboard() {

0 commit comments

Comments
 (0)