// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import PropTypes from 'prop-types'; import {KeyboardAvoidingView, Platform, View} from 'react-native'; export default class KeyboardLayout extends React.PureComponent { static propTypes = { behaviour: PropTypes.string, children: PropTypes.node, keyboardVerticalOffset: PropTypes.number }; render() { const {behaviour, children, keyboardVerticalOffset, ...otherProps} = this.props; if (Platform.OS === 'android') { return ( {children} ); } return ( {children} ); } }