-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
24 lines (22 loc) · 781 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { createAppContainer } from "react-navigation";
import { createStackNavigator } from "react-navigation-stack";
import SearchScreen from "./src/screens/SearchScreen";
import DescriptionScreen from "./src/screens/DescriptionScreen";
import SponsoredLegislation from "./src/screens/SponsoredLegislation";
import CoSponsoredLegislation from "./src/screens/CoSponsoredLegislation";
import RepScreen from "./src/screens/RepScreen";
const navigator = createStackNavigator({
Search: SearchScreen,
RepScreen: RepScreen,
Description: DescriptionScreen,
Sponsored: SponsoredLegislation,
CoSponsored: CoSponsoredLegislation
},
{
initialRouteName: 'Search',
defaultNavigationOptions: {
title: "Who Rep's Me US?",
},
}
)
export default createAppContainer(navigator);