This commit is contained in:
MedihaZukic
2017-09-23 12:54:55 +02:00
2 changed files with 43 additions and 26 deletions

View File

@@ -0,0 +1,37 @@
import React from 'react';
import { View, Text } from 'react-native';
//import CategoryItem from './CategoryItem';
const AnatomyCard = ({title, text}) => {
const { defaultStyle, titleStyle, textStyle } = styles;
return (
<View style={defaultStyle}>
<Text style={titleStyle}>{title}</Text>
<Text style={textStyle}>{text}</Text>
</View>
);
};
const styles = {
defaultStyle: {
flexDirection: 'column',
justifyContent: 'center',
backgroundColor: '#f7bcbc',
flex: 1
},
titleStyle: {
color: 'white',
textAlign: 'center',
fontSize: 24
},
textStyle: {
textAlign: 'center',
color: 'white',
fontSize: 16,
margin: 20,
lineHeight: 22
}
};
export default AnatomyCard;