Last active
June 18, 2016 04:15
-
-
Save dabit3/5e98eaac295ef346aac1f0a4f957271c to your computer and use it in GitHub Desktop.
React Native Navigator Experimental Part 3 - Samples.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 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