Created
July 10, 2017 07:54
-
-
Save Louiefigz/0291da8260c15f797a73c7833fbbd783 to your computer and use it in GitHub Desktop.
This file contains 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, { Component } from 'react'; | |
import { ScrollView } from 'react-native'; | |
import { Tile, List, ListItem, Button } from 'react-native-elements'; | |
import { me } from '../config/data'; | |
class Me extends Component { | |
render() { | |
return ( | |
<ScrollView> | |
<Tile | |
imageSrc={{ uri: this.props.picture.large}} | |
featured | |
title={`${this.props.name.first.toUpperCase()} | |
${this.props.name.last.toUpperCase()}`} | |
caption={this.props.email} | |
/> | |
</ScrollView> | |
); | |
} | |
} | |
Me.defaultProps = { ...me }; | |
export default Me; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment