mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
fbobjc
Reviewed By: gabelevi Differential Revision: D4652687 fbshipit-source-id: 6069c8bc24f0b88da3537ada877cdb7d1d4eccfd
This commit is contained in:
committed by
Facebook Github Bot
parent
e3ef69548c
commit
59257d6976
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user