{"size": 1414, "ext": "js", "max_stars_repo_path": "src/screens/StandardLearnScreen/components/LearnStandardAfterCourse.component.js", "max_stars_repo_name": "best-project/mobile", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/screens/StandardLearnScreen/components/LearnStandardAfterCourse.component.js", "max_issues_repo_name": "best-project/mobile", "max_issues_repo_issues_event_min_datetime": "2021-05-10T16:24:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-10-06T05:08:20.000Z", "max_forks_repo_path": "src/screens/StandardLearnScreen/components/LearnStandardAfterCourse.component.js", "max_forks_repo_name": "best-project/mobile", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 23.9661016949, "max_line_length": 71, "alphanum_fraction": 0.6195190948}
import React from "react";
import { View, Text, StyleSheet } from "react-native";
import { Button } from "react-native-elements";

const LearnStandardAfterCourseComponent = props => {
  return (
    <View style={afterCourseStyle.view}>
      <Text style={afterCourseStyle.headerText}>Course</Text>
      <Text style={afterCourseStyle.titleText}>{props.name}</Text>
      <Text style={afterCourseStyle.bottomText}>came to the end.</Text>
      <View style={afterCourseStyle.buttons}>
        <Button
          title="Again"
          containerStyle={afterCourseStyle.button}
          onPress={props.goAgain}
        />
        <Button
          title="Go to test"
          containerStyle={afterCourseStyle.button}
          onPress={props.goTest}
        />
        <Button
          title="Back to manager"
          containerStyle={afterCourseStyle.button}
          onPress={props.backToManager}
        />
      </View>
    </View>
  );
};

const afterCourseStyle = StyleSheet.create({
  view: {
    flex: 1,
    justifyContent: "center",
    alignItems: "center",
    backgroundColor: "#fafafa"
  },
  buttons: {
    flexDirection: "row",
    marginTop: 30,
    justifyContent: "space-between"
  },
  button: {
    marginHorizontal: 10
  },
  headerText: {
    fontSize: 30
  },
  titleText: {
    fontSize: 40
  },
  bottomText: {
    fontSize: 18
  }
});

export default LearnStandardAfterCourseComponent;
