Reorg overlay feature files

This commit is contained in:
Bettenbuk Zoltan
2019-04-09 13:05:20 +02:00
committed by Saúl Ibarra Corretgé
parent 18d908ce84
commit 84b917d708
23 changed files with 97 additions and 71 deletions

View File

@@ -0,0 +1,38 @@
// @flow
import React, { Component, type Node } from 'react';
import { SafeAreaView, View } from 'react-native';
import { overlayFrame as 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 (
<View style = { styles.container }>
<SafeAreaView style = { styles.safeContainer } >
{ this.props.children }
</SafeAreaView>
</View>
);
}
}