Reviewed By: gabelevi

Differential Revision: D4652687

fbshipit-source-id: 6069c8bc24f0b88da3537ada877cdb7d1d4eccfd
This commit is contained in:
Jeff Morrison
2017-03-04 19:29:24 -08:00
committed by Facebook Github Bot
parent e3ef69548c
commit 59257d6976
24 changed files with 53 additions and 8 deletions

View File

@@ -52,6 +52,7 @@ const viewRef = 'VIEW';
* It is a component to solve the common problem of views that need to move out of the way of the virtual keyboard.
* It can automatically adjust either its position or bottom padding based on the position of the keyboard.
*/
// $FlowFixMe(>=0.41.0)
const KeyboardAvoidingView = React.createClass({
mixins: [TimerMixin],
@@ -153,6 +154,7 @@ const KeyboardAvoidingView = React.createClass({
},
render(): React.Element<any> {
// $FlowFixMe(>=0.41.0)
const {behavior, children, style, ...props} = this.props;
switch (behavior) {