import { PropsWithChildren, useCallback, useRef } from 'react'; import { Platform, ScrollView, ScrollViewProps } from 'react-native'; // TODO: this component crashes the app, investigation is needed // https://github.com/kirillzyusko/react-native-keyboard-controller/issues/203 // import { KeyboardGestureArea } from 'react-native-keyboard-controller'; interface Props extends ScrollViewProps {} export const AppKeyboardHandlerView = (props: PropsWithChildren) => { const ref = useRef(null); const scrollToBottom = useCallback(() => { ref.current?.scrollToEnd({ animated: false }); }, []); return Platform.OS === 'ios' ? ( {props.children} ) : ( // {props.children} // ); };