{"size": 494, "ext": "js", "max_stars_repo_path": "screen/HomeScreen.js", "max_stars_repo_name": "mjmccull0/mobile_beer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "screen/HomeScreen.js", "max_issues_repo_name": "mjmccull0/mobile_beer", "max_issues_repo_issues_event_min_datetime": "2020-11-04T15:00:25.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-24T16:22:30.000Z", "max_forks_repo_path": "screen/HomeScreen.js", "max_forks_repo_name": "mjmccull0/mobile_beer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.4545454545, "max_line_length": 62, "alphanum_fraction": 0.6518218623}
import React from "react";
import BeerList from "../component/BeerList";
import BeerCard from "../component/BeerCard";
import { useBeer } from "../hook/useBeer";

const HomeScreen = ({ navigation }) => {
  const [ data, nextPage, refresh, isRefreshing ] = useBeer();

  return (
    <BeerList
      component={BeerCard}
      navigation={navigation}
      data={data}
      nextPage={nextPage}
      refresh={refresh}
      isRefreshing={isRefreshing}
    />
  );
}

export default HomeScreen;
