mattermost-mobile/app/components/safe_area_view/safe_area_view.android.js
enahum 87261e9a59
Make layout compatible with iPhone X (#1205)
* Make layout compatible with iPhone X

* feedback review
2017-11-28 09:04:53 -03:00

26 lines
609 B
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, View} from 'react-native';
export default class SafeAreaAndroid extends PureComponent {
static propTypes = {
children: PropTypes.node.isRequired
};
render() {
return (
<View style={style.container}>
{this.props.children}
</View>
);
}
}
const style = StyleSheet.create({
container: {
flex: 1
}
});