-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
34 lines (31 loc) · 1023 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
25
26
27
28
29
30
31
32
33
34
import { createStackNavigator } from "react-navigation-stack";
import { createAppContainer } from "react-navigation";
// eslint-disable-next-line import/no-unresolved
import StackViewTransitionConfigs from "react-navigation-stack/src/views/StackView/StackViewTransitionConfigs";
import Register from "./components/Register";
import Chat from "./components/Chat";
import Login from "./components/Login";
import Home from "./components/Home";
import Profile from "./components/Profile";
import Settings from "./components/Settings";
import ManageEvents from "./components/ManageEvents";
import ViewProfile from "./components/ViewProfile";
// TODO: add additional firebase rules
const RootStack = createStackNavigator(
{
Login,
ManageEvents,
ViewProfile,
Home,
Profile,
Settings,
Register,
Chat
},
{
transitionConfig: () => StackViewTransitionConfigs.SlideFromRightIOS,
headerMode: "none"
}
);
const AppContainer = createAppContainer(RootStack);
export default AppContainer;