import React from 'react' import PropTypes from 'prop-types' import { ScrollView, StyleSheet } from 'react-native' import AppText from '../common/app-text' import { Containers, Typography } from '../../styles/redesign' const AppPage = ({ children, title }) => { return( {title && {title}} {children} ) } AppPage.propTypes = { children: PropTypes.node, title: PropTypes.string } const styles = StyleSheet.create({ container: { ...Containers.page }, title: { ...Typography.pageTitle } }) export default AppPage