{"size": 1334, "ext": "js", "max_stars_repo_path": "src/containers/DataExplorer/screens/index.js", "max_stars_repo_name": "iamacup/choice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/containers/DataExplorer/screens/index.js", "max_issues_repo_name": "iamacup/choice", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/containers/DataExplorer/screens/index.js", "max_forks_repo_name": "iamacup/choice", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.1025641026, "max_line_length": 63, "alphanum_fraction": 0.5764617691}

import * as React from 'react';

import PropTypes from 'prop-types';

import {
  Container,
  Header,
  Title,
  Button,
  Icon,
  Left,
  Body,
  Right,
  Tabs,
  Tab,
} from 'native-base';

// import styles from './styles';

import UniversityTab from '../../UniversityTab';
import CourseTab from '../../CourseTab';

// SETUP TYPES FOR FLOW

export interface Props {
  navigation: any,
}
export interface State {}

// PRIMARY CLASS

// navigation, swipedCallback, drawData

const DataExplorerScreen = ({ navigation, swipedAnswers }) => (
  <Container>

    <Header hasTabs>
      <Left>
        <Button transparent>
          <Icon
            active
            name='menu'
            onPress={() => { navigation.openDrawer(); }}
          />
        </Button>
      </Left>
      <Body>
        <Title>
              Data Explorer
        </Title>
      </Body>
      <Right />
    </Header>

    <Tabs>
      <Tab heading='Universities'>
        <UniversityTab
          swipedAnswers={swipedAnswers}
        />
      </Tab>
      <Tab heading='Courses'>
        <CourseTab
          swipedAnswers={swipedAnswers}
        />
      </Tab>
    </Tabs>

  </Container>
);

DataExplorerScreen.propTypes = {
  navigation: PropTypes.any.isRequired,
  swipedAnswers: PropTypes.object.isRequired,
};

export default DataExplorerScreen;
