diff --git a/index.ios.js b/index.ios.js
index 608c597..31ceff3 100644
--- a/index.ios.js
+++ b/index.ios.js
@@ -12,42 +12,22 @@ import {
View
} from 'react-native';
+import AnatomyCard from './src/components/AnatomyCard'
+
export default class meme extends Component {
render() {
return (
-
- Welcome to React Native!
-
-
- To get started, edit index.ios.js
-
-
- Press Cmd+R to reload,{'\n'}
- Cmd+D or shake for dev menu
-
+
- );
+ )
}
}
const styles = StyleSheet.create({
container: {
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- backgroundColor: '#F5FCFF',
- },
- welcome: {
- fontSize: 20,
- textAlign: 'center',
- margin: 10,
- },
- instructions: {
- textAlign: 'center',
- color: '#333333',
- marginBottom: 5,
- },
+ flex: 1
+ }
});
AppRegistry.registerComponent('meme', () => meme);
diff --git a/src/components/AnatomyCard.js b/src/components/AnatomyCard.js
index e69de29..6478216 100644
--- a/src/components/AnatomyCard.js
+++ b/src/components/AnatomyCard.js
@@ -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 (
+
+ {title}
+ {text}
+
+ );
+};
+
+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;