forked from Project-Plasma/PepClock-Native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
31 lines (29 loc) · 962 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
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { NativeRouter, Route, Link } from 'react-router-native';
import styles from './styles/main';
import Events from './components/Events';
import Login from './components/Login';
export default class App extends React.Component {
render() {
return (
<NativeRouter>
<View style={styles.container}>
<Text>Hello PepClock-Native</Text>
<View style={styles.nav}>
<Link
to='/events'
style={styles.navItem}>
<Text>Events</Text></Link>
<Link
to='/login'
style={styles.navItem}>
<Text>Login</Text></Link>
</View>
<Route exact path='/' component={Events}/>
<Route path='/login' component={Login}/>
</View>
</NativeRouter>
);
}
}