diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index aff434f277..40a9375126 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -2102,6 +2102,13 @@ export interface KeyboardAvoidingViewProps extends ViewProps { * may be non-zero in some use cases. */ keyboardVerticalOffset?: number; + + /** + * Enables or disables the KeyboardAvoidingView. + * + * Default is true + */ + enabled?: boolean; } /** diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index 4921847c2b..93eeabd985 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -68,6 +68,7 @@ import { TextInputEndEditingEventData, TextInputSubmitEditingEventData, WebView, + KeyboardAvoidingView, } from "react-native"; declare module "react-native" { @@ -724,3 +725,8 @@ class AccessibilityTest extends React.Component { ); } } + + +const KeyboardAvoidingViewTest = () => ( + +);