Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add value to Coordinates when hide #120

Merged
Merged
2 changes: 1 addition & 1 deletion src/useKeyboard.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useEffect, useState} from 'react'
import {Keyboard, KeyboardEventListener, ScreenRect} from 'react-native'

const emptyCoordinates = Object.freeze({ screenX: 0, screenY: 0, width: 0, height: 0 })
const emptyCoordinates = Object.freeze({screenX:0,screenY:0,width:0,height:0})
pvinis marked this conversation as resolved.
Show resolved Hide resolved
pvinis marked this conversation as resolved.
Show resolved Hide resolved
const initialValue = {
start: emptyCoordinates,
end: emptyCoordinates,
Expand Down