-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathApp.js
44 lines (42 loc) · 1.01 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
import React from "react";
import { Platform, Text, View } from "react-native";
import { BrowserRouter, Switch, Route } from "react-router-dom";
import "./App/Pages/Web/Form.css";
import FormRegister from "./App/Pages/Web/FormRegister";
import FormLogin from "./App/Pages/Web/FormLogin";
export default function App() {
if (Platform.OS === "web") {
return (
<>
<nav style={{ height: 73 }}>
<img
style={{ width: "100%", height: 73 }}
src={require("./App/assets/Nav.png")}
/>
</nav>
<BrowserRouter>
<Switch>
<Route path="/register" component={FormRegister} />
<Route path="/login" component={FormLogin} />
</Switch>
</BrowserRouter>
</>
);
} else {
return (
<View>
<Text>asdjhgasdg</Text>
</View>
);
}
}
{
/* <BrowserRouter>
<a href="/register">Register</a>
<Switch>
<Route path="/register" component={FormRegister} />
<Route path="/login" component={FormLogin} />
</Switch>
<FormRegister />
</BrowserRouter> */
}