// use KeyboardAvoidingView import { KeyboardAvoidingView } from 'react-native' // ... return ( <KeyboardAvoidingView> // .... </KeyboardAvoidingView> )