Documentation Index
Fetch the complete documentation index at: https://docs.firstflow.app/llms.txt
Use this file to discover all available pages before exploring further.
useKeyboardHeight listens to the keyboard show/hide events and returns the current keyboard height in pixels. Use it to shift your chat layout up so the composer stays visible when the keyboard opens.
Usage
Return value
number — the current keyboard height in pixels. Returns 0 when the keyboard is hidden.
Notes
- The height animates on keyboard show/hide. For a smoother transition, wrap the
paddingBottomin aLayoutAnimationorAnimated.Value. - On Android, if
android:windowSoftInputModeis set toadjustResizein yourAndroidManifest.xml, the OS resizes the window automatically and you may not needuseKeyboardHeight. - Must be called inside a component that is a descendant of
FirstflowProvider.