Introduces License and About components redesign

This commit is contained in:
mashazyu
2020-03-23 10:48:12 +01:00
committed by Sofiya Tepikin
parent 3f8f6dbbe6
commit 4f30db69f3
6 changed files with 98 additions and 46 deletions
+32
View File
@@ -0,0 +1,32 @@
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(
<ScrollView style={styles.container}>
{title && <AppText style={styles.title}>{title}</AppText>}
{children}
</ScrollView>
)
}
AppPage.propTypes = {
children: PropTypes.node,
title: PropTypes.string
}
const styles = StyleSheet.create({
container: {
...Containers.page
},
title: {
...Typography.pageTitle
}
})
export default AppPage