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
    });
  }
}


@@ -907,16 +907,50 @@
 epoList 
+%0A          list=%7Bthis.state.repos%7D
 /%3E%0A     

Add repos to list component