Skip to content

Instantly share code, notes, and snippets.

@dabit3
Last active June 18, 2016 04:23
Show Gist options
  • Save dabit3/a24f51432e6105921c715516c8cfef77 to your computer and use it in GitHub Desktop.
Save dabit3/a24f51432e6105921c715516c8cfef77 to your computer and use it in GitHub Desktop.
React Native Navigator Experimental Part 3 - Recipes.js
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