jiti-meet/react/features/overlay/components/native/OverlayFrame.js

39 lines
878 B
JavaScript
Raw Normal View History

// @flow
import React, { Component, type Node } from 'react';
2019-03-06 16:28:59 +00:00
import { SafeAreaView, View } from 'react-native';
2019-04-09 15:53:12 +00:00
import styles from './styles';
/**
* The type of the React {@code Component} props of {@code OverlayFrame}.
*/
type Props = {
/**
* The children components to be displayed into the overlay frame.
*/
children: Node,
};
/**
* Implements a React component to act as the frame for overlays.
*/
export default class OverlayFrame extends Component<Props> {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
return (
2019-03-06 16:28:59 +00:00
<View style = { styles.container }>
<SafeAreaView style = { styles.safeContainer } >
{ this.props.children }
</SafeAreaView>
</View>
);
}
}