Created
May 15, 2017 01:59
-
-
Save edutrul/cefc3bc08afcd1a48a1f2ae743968baa to your computer and use it in GitHub Desktop.
[react_native]
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View, | |
Image | |
} from 'react-native'; | |
export default class NavigationProject extends Component { | |
render() { | |
let images = [ | |
'http://teamoalexandra.tk/img/01.jpg', | |
'http://teamoalexandra.tk/img/02.jpg', | |
'http://teamoalexandra.tk/img/03.jpg', | |
'http://teamoalexandra.tk/img/04.jpg' | |
]; | |
return ( | |
<View style={styles.container}> | |
{images.map(image => <Image source={{uri: image}} style={{width: 193, height: 110}}/>)} | |
</View> | |
); | |
} | |
} | |
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, | |
}, | |
}); | |
AppRegistry.registerComponent('NavigationProject', () => NavigationProject); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment