import { AvoidKeyboard } from '@/components/ui/avoid-keyboard'; import { Input } from '@/components/ui/input'; import { Text } from '@/components/ui/text'; import { View } from '@/components/ui/view'; import { useKeyboardHeight } from '@/hooks/useKeyboardHeight'; import React from 'react'; export function AvoidKeyboardDemo() { const { keyboardHeight, isKeyboardVisible, keyboardAnimationDuration } = useKeyboardHeight(); return ( Basic Keyboard Avoidance Tap the input below to see the keyboard avoidance in action. The content will smoothly move up to keep the input visible. {/* Spacer to push input toward bottom */} Keyboard Height: {keyboardHeight} Keyboard Visible: {isKeyboardVisible ? 'Yes' : 'No'} Animation Duration: {keyboardAnimationDuration}ms {/* This will create space to avoid the keyboard */} ); }