Skip to content

Instantly share code, notes, and snippets.

@Louiefigz
Created July 10, 2017 07:54
Show Gist options
  • Save Louiefigz/0291da8260c15f797a73c7833fbbd783 to your computer and use it in GitHub Desktop.
Save Louiefigz/0291da8260c15f797a73c7833fbbd783 to your computer and use it in GitHub Desktop.
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