Last active
June 18, 2016 04:23
-
-
Save dabit3/a24f51432e6105921c715516c8cfef77 to your computer and use it in GitHub Desktop.
React Native Navigator Experimental Part 3 - Recipes.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { View, Text, StyleSheet, Image } from 'react-native' | |
const Recipes = () => ( | |
<View style={styles.container}> | |
<Text style={styles.text}>Hello from Recipes!</Text> | |
<Image | |
style={styles.image} | |
source={{ uri: 'https://i.imgur.com/zwx84jE.png' }}/> | |
</View> | |
) | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: '#10a2f0', | |
alignItems: 'center' | |
}, | |
text: { | |
color: 'white', | |
marginTop: 100, | |
fontSize: 24, | |
textAlign: 'center' | |
}, | |
image: { | |
width: 250, | |
height: 250 | |
} | |
}) | |
export default Recipes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment