Skip to content

Instantly share code, notes, and snippets.

@dabit3
Last active June 18, 2016 04:15
Show Gist options
  • Save dabit3/5e98eaac295ef346aac1f0a4f957271c to your computer and use it in GitHub Desktop.
Save dabit3/5e98eaac295ef346aac1f0a4f957271c to your computer and use it in GitHub Desktop.
React Native Navigator Experimental Part 3 - Samples.js
import React from 'react'
import { View, Text, StyleSheet, Image } from 'react-native'
const Samples = () => (
<View style={styles.container}>
<Text style={styles.text}>Hello from Samples!</Text>
<Image
style={styles.image}
source={{ uri: 'https://i.imgur.com/PK9PmOn.png' }}/>
</View>
)
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ff53f5',
alignItems: 'center'
},
text: {
color: 'white',
marginTop: 100,
fontSize: 24,
textAlign: 'center'
},
image: {
width: 250,
height: 250
}
})
export default Samples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment