-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
48 lines (44 loc) · 1.71 KB
/
App.js
File metadata and controls
48 lines (44 loc) · 1.71 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
39
40
41
42
43
44
45
46
47
import { NativeWindStyleSheet } from "nativewind";
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { LoginProvider } from './src/context/LoginContext';
import { FilterProvider } from './src/context/FiltersContext'
import { Home } from './src/screens/Home';
import LoginForm from './src/screens/LoginForm';
import RegistrationForm from './src/screens/RegistrationForm';
import MovieDetails from './src/screens/MovieDetails';
import Profile from './src/screens/Profile';
import Filters from './src/screens/Filters';
import { FontAwesome } from '@expo/vector-icons';
NativeWindStyleSheet.setOutput({
web: 'css',
default: 'native'
});
export default function App() {
const Stack = createNativeStackNavigator();
return (
<FilterProvider>
<LoginProvider>
<NavigationContainer>
<Stack.Navigator initialRouteName="Movie Info">
<Stack.Screen
name="Movie Info"
component={Home}
options={{
title: 'Home',
headerLeft: (props) => (
<FontAwesome name="home" size={22} color="black" style={{ marginRight: 10 }} />
),
}}
/>
<Stack.Screen name="Login" component={LoginForm} />
<Stack.Screen name="Registration" component={RegistrationForm} />
<Stack.Screen name="MovieDetails" component={MovieDetails} />
<Stack.Screen name="Profile" component={Profile} />
<Stack.Screen name="Filters" component={Filters} />
</Stack.Navigator>
</NavigationContainer>
</LoginProvider>
</FilterProvider>
);
}