type keyboardMetrics = {
screenX: float,
screenY: float,
width: float,
height: float,
}
type eventType = [
| #keyboardWillShow
| #keyboardDidShow
| #keyboardWillHide
| #keyboardDidHide
| #keyboardWillChangeFrame
| #keyboardDidChangeFrame
]
type keyboardEvent = {
duration: float,
easing: LayoutAnimation.animationType,
endCoordinates: keyboardMetrics,
startCoordinates: keyboardMetrics,
isEventFromThisApp: bool,
}
addListener: (eventType, keyboardEvent => unit) => EventSubscription.t
removeAllListeners: eventType => unit
metrics: unit => option<keyboardMetrics>
scheduleLayoutAnimation: keyboardEvent => unit