-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
37 lines (35 loc) · 1.26 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
import React from "react";
import { StyleSheet, View } from "react-native";
import Login from "./screens/Login/Login";
import Projects from "./screens/Projects/Projects";
import NewProject from "./screens/NewProject/NewProject";
import Project from "./screens/Projects/Project";
import NewPlan from "./screens/NewPlan/NewPlan";
import { NativeRouter, Route } from "react-router-native";
import Signup from "./screens/Signup/Signup";
import Tasks from "./screens/Tasks/Tasks";
import NewTask from "./screens/NewTask/NewTask";
import Calendar from "./screens/Calendar/Calendar";
import "./utils/firebaseConfig";
export default function App() {
return (
<NativeRouter>
<View style={styles.container}>
<Route path="/tasks-view/:id" component={Tasks} />
<Route path="/calendar-view" component={Calendar} />
<Route path="/new-task/:id" component={NewTask} />
<Route path="/projects" component={Projects} />
<Route path="/new-project" component={NewProject} />
<Route path="/project/:id" component={Project} />
<Route path="/new-plan/:id" component={NewPlan} />
<Route path="/signup" component={Signup} />
<Route exact path="/" component={Login} />
</View>
</NativeRouter>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});