{"size": 766, "ext": "js", "max_stars_repo_path": "mobile/src/routes.js", "max_stars_repo_name": "belapferreira/desafio07-arquitetura-flux-rocketshoes", "max_stars_repo_stars_event_min_datetime": "2020-04-30T14:50:45.000Z", "max_stars_repo_stars_event_max_datetime": "2020-05-03T12:59:01.000Z", "max_issues_repo_path": "mobile/src/routes.js", "max_issues_repo_name": "belapferreira/desafio07-arquitetura-flux-rocketshoes", "max_issues_repo_issues_event_min_datetime": "2021-09-03T01:39:43.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T03:55:40.000Z", "max_forks_repo_path": "mobile/src/routes.js", "max_forks_repo_name": "belapferreira/desafio08-react-hooks-rocketshoes", "max_forks_repo_forks_event_min_datetime": "2020-04-30T14:45:25.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-03T23:05:26.000Z"}
{"max_stars_count": 2, "max_issues_count": 5, "max_forks_count": 4, "avg_line_length": 25.5333333333, "max_line_length": 63, "alphanum_fraction": 0.6292428198}
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';

import Header from './components/Header';
import Home from './pages/Home';
import Cart from './pages/Cart';

import colors from './styles/colors';

const Stack = createStackNavigator();

export default function Routes() {
  return (
    <Stack.Navigator
      headerBackTitleVisible={false}
      headerLayoutPreset="center"
      screenOptions={({ navigation }) => ({
        headerTitle: () => <Header {...navigation} />,
        headerStyle: {
          backgroundColor: colors.dark,
        },
        headerLeft: null,
      })}
    >
      <Stack.Screen name="Home" component={Home} />
      <Stack.Screen name="Cart" component={Cart} />
    </Stack.Navigator>
  );
}
