import React from "react"; import { View } from "react-native"; import { RCTKeyboardExtender } from "../../bindings"; import { useWindowDimensions } from "../../hooks"; import type { KeyboardExtenderProps } from "../../types"; import type { PropsWithChildren } from "react"; /** * A component that embeds its children into the keyboard thus enhancing keyboard functionality. * * @param props - Component props. * @returns A view component that renders inside the keyboard above all system buttons. * @example * ```tsx * * * * * * ``` */ const KeyboardExtender = (props: PropsWithChildren) => { const { children, enabled = true } = props; const { width } = useWindowDimensions(); return ( {children} ); }; export default KeyboardExtender;