Skip to content

Instantly share code, notes, and snippets.

@Louiefigz
Created July 9, 2017 05:11
Show Gist options
  • Save Louiefigz/e0e8c3a5fd5367defcad87ca5f90ee5f to your computer and use it in GitHub Desktop.
Save Louiefigz/e0e8c3a5fd5367defcad87ca5f90ee5f to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import {
Text,
View,
ScrollView
} from 'react-native';
import { List, ListItem } from 'react-native-elements';
import { users } from '../config/data';
class Feed extends Component {
render() {
return (
<ScrollView>
<List>
{users.map((user) => (
<ListItem
key={user.login.username}
roundAvatar
avatar={{ uri: user.picture.thumbnail }}
title={`${user.name.first.toUpperCase()} ${user.name.last.toUpperCase()}`}
subtitle={user.email}
/>
))}
</List>
</ScrollView>
);
}
}
export default Feed;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment