diff options
Diffstat (limited to 'app/components/Layout.js')
| -rw-r--r-- | app/components/Layout.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/app/components/Layout.js b/app/components/Layout.js deleted file mode 100644 index 42e96640c0..0000000000 --- a/app/components/Layout.js +++ /dev/null @@ -1,36 +0,0 @@ -// @flow - -import * as React from 'react'; -import { View, Component } from 'reactxp'; -import HeaderBar from './HeaderBar'; -import styles from './LayoutStyles'; - -export class Header extends Component<React.ElementProps<typeof HeaderBar>> { - static defaultProps = HeaderBar.defaultProps; - - render() { - return ( - <View style={[styles.header, this.props.style]}> - <HeaderBar barStyle={this.props.barStyle}>{this.props.children}</HeaderBar> - </View> - ); - } -} - -type ContainerProps = { - children: React.Node, -}; -export class Container extends Component<ContainerProps> { - render() { - return <View style={styles.container}>{this.props.children}</View>; - } -} - -type LayoutProps = { - children: Array<React.Node> | React.Node, -}; -export class Layout extends Component<LayoutProps> { - render() { - return <View style={styles.layout}>{this.props.children}</View>; - } -} |
