-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
29 lines (26 loc) · 728 Bytes
/
Copy pathApp.js
File metadata and controls
29 lines (26 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from "react";
import { createStackNavigator, createAppContainer } from "react-navigation";
import HomeScreen from "./components/HomeScreen.js";
import ResultsScreen from "./components/ResultsScreen.js";
import DetailScreen from "./components/DetailScreen.js";
import { GlobalContextProvider } from "./GlobalContext.js";
const RootStack = createStackNavigator(
{
Home: HomeScreen,
Results: ResultsScreen,
Detail: DetailScreen
},
{
initialRouteName: "Home"
}
);
const AppContainer = createAppContainer(RootStack);
export default class App extends React.Component {
render() {
return (
<GlobalContextProvider>
<AppContainer />
</GlobalContextProvider>
);
}
}