import React, { Component } from 'react';
import {
StyleSheet,
View
} from 'react-native';
import Heading from '../components/heading'
export default class Container extends Component {
constructor() {
super()
}
render() {
const { heading, style, bodyStyle, headingOnPress, ...props } = this.props
let headingEl;
if (heading) {
headingEl = (
{heading.toUpperCase()}
)
}
else {
headingEl = null
}
return (
{headingEl}
{this.props.children}
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'flex-start',
},
heading: {
},
body: {
flex: 1,
justifyContent: 'flex-start',
alignItems: 'flex-start',
paddingLeft: 10,
}
})