-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
48 lines (45 loc) · 1.14 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import {
mapping,
light as lightTheme,
dark as darkTheme
} from "@eva-design/eva";
import { ApplicationProvider, Layout } from "react-native-ui-kitten";
import {
createSwitchNavigator,
createStackNavigator,
createAppContainer
} from "react-navigation";
import Login from "./components/Login";
import Second from "./components/Second";
import Home from "./components/Home";
import MovieDetails from "./components/MovieDetails";
import Watchlist from "./components/Watchlist";
const ApplicationNavigator = createStackNavigator(
{
Home: Home,
Second: Second,
MovieDetails: MovieDetails,
Watchlist: Watchlist
},
{ initialRouteName: "Home" }
);
const AppNavigator = createSwitchNavigator(
{
Login,
Login,
ApplicationNavigator
},
{ initialRouteName: "Login" }
);
const AppContainer = createAppContainer(AppNavigator);
export default function App() {
return (
<ApplicationProvider mapping={mapping} theme={lightTheme}>
<Layout style={{ flex: 1 }}>
<AppContainer />
</Layout>
</ApplicationProvider>
);
}