{"size": 406, "ext": "js", "max_stars_repo_path": "src/components/Head/index.js", "max_stars_repo_name": "RgMellon/pucom", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Head/index.js", "max_issues_repo_name": "RgMellon/pucom", "max_issues_repo_issues_event_min_datetime": "2020-09-07T07:19:32.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T21:45:26.000Z", "max_forks_repo_path": "src/components/Head/index.js", "max_forks_repo_name": "RgMellon/pucom", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 21.3684210526, "max_line_length": 58, "alphanum_fraction": 0.6502463054}
import React from 'react';

import Icon from 'react-native-vector-icons/FontAwesome5';
import { ButtonBack, Container } from './styles';

export default function Head() {
  function handleRedirect() {
    navigation.popToTop();
  }

  return (
    <Container>
      <ButtonBack onPress={handleRedirect}>
        <Icon name="angle-left" color="#fff" size={23} />
      </ButtonBack>
    </Container>
  );
}
