From 97f4bc1879d84c8772516f4cdf6a0422e43a47a2 Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Fri, 10 Aug 2018 08:24:26 -0400 Subject: [PATCH] feat(react-native): Add enabled prop to KeyboardAvoidingView --- types/react-native/index.d.ts | 7 +++++++ types/react-native/test/index.tsx | 6 ++++++ 2 files changed, 13 insertions(+) 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 = () => ( + +);