{"size": 753, "ext": "js", "max_stars_repo_path": "src/home/Home.js", "max_stars_repo_name": "clh161/douban_movie", "max_stars_repo_stars_event_min_datetime": "2018-03-08T10:04:05.000Z", "max_stars_repo_stars_event_max_datetime": "2018-06-12T01:55:45.000Z", "max_issues_repo_path": "src/home/Home.js", "max_issues_repo_name": "clh161/douban_movie", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/home/Home.js", "max_forks_repo_name": "clh161/douban_movie", "max_forks_repo_forks_event_min_datetime": "2021-05-07T03:07:06.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-07T03:07:06.000Z"}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.1, "max_line_length": 78, "alphanum_fraction": 0.5391766268}
import React from 'react';
import {Text, View, Button} from 'react-native';

export default class Home extends React.Component {

    constructor(props) {
        super(props);

        this.handleTestClick = this.handleTestClick.bind(this);
    }

    handleTestClick() {
        this.props.navigator.push({
            screen: 'test',
            title: 'Pushed Test Screen',
        });
    }

    render() {
        return (
            <View>
                <Text>{this.props.value}</Text>
                <Button title='button0' color='red' onPress={this.props.add}/>
                <Button title='button1' onPress={this.props.remove}/>
                <Button title='test' onPress={this.handleTestClick}/>

            </View>
        )
    }
}