-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
executable file
·38 lines (34 loc) · 1.14 KB
/
App.js
File metadata and controls
executable file
·38 lines (34 loc) · 1.14 KB
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
import React from "react";
import { StyleSheet, View, Dimensions } from "react-native";
import { NativeRouter, Route, Redirect, Switch } from "react-router-native";
import Toolbar from "./components/ui/Toolbar";
import Editor from "./components/pages/Editor";
import Analysis from "./components/pages/Analysis";
import Scan from "./components/pages/Scan";
import Clock from "./components/pages/Clock";
import Profile from "./components/pages/Profile";
export default class App extends React.Component {
render() {
return (
<NativeRouter>
<View style={styles.container}>
<Switch>
<Redirect exact from="/" to="/editor" />
<Route exact path="/editor" component={Editor} />
<Route exact path="/analysis" component={Analysis} />
<Route exact path="/scan" component={Scan} />
<Route exact path="/clock" component={Clock} />
<Route exact path="/profile" component={Profile} />
</Switch>
<Toolbar />
</View>
</NativeRouter>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#272727",
}
});