Merge branch 'master' of https://github.com/edazdarevic/meme
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user