// Copyright (c) 2015-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 = { backgroundColor: PropTypes.string, children: PropTypes.node.isRequired, theme: PropTypes.object.isRequired, }; render() { const {backgroundColor, children, theme} = this.props; let bgColor = theme.centerChannelBg; if (backgroundColor) { bgColor = backgroundColor; } return ( {children} ); } } const style = StyleSheet.create({ container: { flex: 1, }, });