old_contents: import React, { Component } from 'react';
  import { View } from 'react-native';
  import RepoSearchBar from './components/RepoSearchBar';
  import RepoSearchButton from './components/RepoSearchButton';
  import RepoList from './components/RepoList';
  
  export default class SearchScreen extends Component {
    constructor(props) {
      super(props);
      this.state = {
        username: '',
        repos: []
      };
      this.changeUsername = this.changeUsername.bind(this);
      this.updateRepos = this.updateRepos.bind(this);
    }
  
    render() {
      let buttonDisabled = this.state.username.length === 0;
      return (
        <View style={{
          flex: 1,
          flexDirection: 'column',
        }}>
          <RepoSearchBar 
            onChangeText={this.changeUsername}/>
          <RepoSearchButton
            disabled={buttonDisabled}
            username={this.state.username}
            onPress={this.updateRepos} />
          <RepoList />
        </View>
      );
    }
  
    changeUsername(newUsername) {
      this.setState({
        username: newUsername
      });
    }
  
    updateRepos(newRepos) {
      this.setState({
        repos: newRepos
      });
    }
  }
  
  
new_contents: import React, { Component } from 'react';
  import { View } from 'react-native';
  import RepoSearchBar from './components/RepoSearchBar';
  import RepoSearchButton from './components/RepoSearchButton';
  import RepoList from './components/RepoList';
  
  export default class SearchScreen extends Component {
    constructor(props) {
      super(props);
      this.state = {
        username: '',
        repos: []
      };
      this.changeUsername = this.changeUsername.bind(this);
      this.updateRepos = this.updateRepos.bind(this);
    }
  
    render() {
      let buttonDisabled = this.state.username.length === 0;
      return (
        <View style={{
          flex: 1,
          flexDirection: 'column',
        }}>
          <RepoSearchBar 
            onChangeText={this.changeUsername}/>
          <RepoSearchButton
            disabled={buttonDisabled}
            username={this.state.username}
            onPress={this.updateRepos} />
          <RepoList 
            list={this.state.repos}/>
        </View>
      );
    }
  
    changeUsername(newUsername) {
      this.setState({
        username: newUsername
      });
    }
  
    updateRepos(newRepos) {
      this.setState({
        repos: newRepos
      });
    }
  }
  
  
subject: Add repos to list component