Moves unique styles of AppPage component to local file

This commit is contained in:
mashazyu
2020-03-23 15:55:51 +01:00
committed by Sofiya Tepikin
parent 3de92b9f77
commit e80d8880b0
3 changed files with 9 additions and 16 deletions
+9 -3
View File
@@ -4,7 +4,7 @@ import { ScrollView, StyleSheet } from 'react-native'
import AppText from '../common/app-text'
import { Containers, Typography } from '../../styles/redesign'
import { Colors, Fonts, Sizes, Spacing, Typography } from '../../styles/redesign'
const AppPage = ({ children, title }) => {
return(
@@ -22,10 +22,16 @@ AppPage.propTypes = {
const styles = StyleSheet.create({
container: {
...Containers.page
backgroundColor: Colors.tourquiseLight,
flex: 1
},
title: {
...Typography.pageTitle
alignSelf: 'center',
fontFamily: Fonts.bold,
fontWeight: '700',
fontSize: Sizes.title,
marginHorizontal: Spacing.base,
...Typography.title
}
})