summaryrefslogtreecommitdiffhomepage
path: root/app/components/PlatformWindow.android.js
blob: b2a13e86c96c3011d6c7e48a7aff0f2d858af9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// @flow
import * as React from 'react';
import { KeyboardAvoidingView } from 'react-native';

export default class PlatformWindow extends React.Component {
  props: {
    children: Array<React.Node> | React.Node
  };

  render() {
    return (
      <KeyboardAvoidingView behavior={'position'}>
        { this.props.children }
      </KeyboardAvoidingView>
    );
  }
}