-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
41 lines (39 loc) Β· 1.01 KB
/
App.tsx
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
import React from 'react';
import { View, StyleSheet, Text } from 'react-native';
import { NativeRouter, Route, Link, Routes } from 'react-router-native';
import { Profile, StudentAuth } from './src/components';
// import Cropper from './src/components/Cropper';
export default function App() {
return (
<NativeRouter>
<Routes>
<Route path="/profile" element={<Profile />} />
<Route path="/stdauth" element={<StudentAuth />} />
</Routes>
<View style={styles.container}>
<Link to="/profile" style={styles.tab}>
<Text>νλ‘ν μ¬μ§</Text>
</Link>
<Link to="/stdauth" style={styles.tab}>
<Text>νμμ¦ μΈμ¦</Text>
</Link>
</View>
</NativeRouter>
);
}
const styles = StyleSheet.create({
container: {
justifyContent: 'center',
marginBottom: 50,
flexDirection: 'row',
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
},
tab: {
borderWidth: 1,
padding: 5,
margin: 5,
},
});