import React, { Component } from 'react';
import { 
  List,
  ListItem,
} from 'react-native-elements';

export default class RepoList extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <List>
        {
          this.props.list.map((item, i) => (
            <ListItem 
              key={i}
              title={item.name} />
          ))
        }
      </List>
    );
  }
}

import React, { Component } from 'react';
import { 
  List,
  ListItem,
} from 'react-native-elements';

export default class RepoList extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    const { navigate } = this.props.navigation;
    return (
      <List>
        {
          this.props.list.map((item, i) => (
            <ListItem 
              key={i}
              title={item.name}
              onPress={() => navigate('RepoView', {
                reponame: item.name,
                url: item.url
              })} />
          ))
        }
      </List>
    );
  }
}


Add onPress handlers for each repo list item generated Setup each list item to navigate to a new screen, passing the name of the repository being viewed and the repository's url which would be used by the API to get the README
Add onPress handlers for each repo list item generated
Setup each list item to navigate to a new screen, passing the name of
the repository being viewed and the repository's url which would be used
by the API to get the README
