feat(react-native): Add enabled prop to KeyboardAvoidingView

This commit is contained in:
Kyle Roach
2018-08-10 08:24:26 -04:00
parent b8d4502de5
commit 97f4bc1879
2 changed files with 13 additions and 0 deletions

View File

@@ -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;
}
/**

View File

@@ -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 = () => (
<KeyboardAvoidingView enabled />
);