-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
42 lines (37 loc) · 1.19 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
// App.js
import React, { useState } from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, View } from 'react-native';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Home from './screens/Home';
import Detail from './screens/Detail';
import Events from './screens/Events';
import NavBar from './navigation/NavBar'; // Update the path as necessary
export default function App() {
const [data, setData] = useState(null);
return (
<Router>
<View style={styles.container}>
<StatusBar style="auto" />
<NavBar />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/details" element={<Detail />} />
<Route path="/events" element={<Events />} />
</Routes>
</View>
</Router>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
width: '100vw', // Ensure full viewport width
height: '100vh', // Ensure full viewport height
backgroundColor: '#c6e2eb',
alignItems: 'center',
justifyContent: 'flex-start', // Adjusted to place items correctly
margin: 0, // Remove default margins
padding: 0, // Remove default padding
},
});