-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
45 lines (38 loc) · 1.57 KB
/
App.js
File metadata and controls
45 lines (38 loc) · 1.57 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
import 'react-native-gesture-handler';
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View, TouchableWithoutFeedback, TouchableOpacity, Image, Button} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import Tab from './Components/Tab';
import Register from './Components/Register';
import Wait from './Components/Wait';
import Home from './Components/Home';
import Search from './Components/Search';
const Stack = createStackNavigator();
export default function App(){
return(
<NavigationContainer>
<Stack.Navigator initialRouteName="Load"
screenOptions = {{
gestureEnabled: true,
safeAreaInsets: {top: 25},
headerStyle: {backgroundColor: 'black', height: 75},
headerTitleStyle: {fontSize: 30},
headerTintColor: "white"
}}>
<Stack.Screen name="Load" component={Wait} options ={{title: 'Loading Screen', headerShown: false}}/>
<Stack.Screen name="Home" component={Home} options ={{title: 'Listed Tasks', headerShown: false}}/>
<Stack.Screen name="Register" component={Register} options ={{title: 'Register task', headerShown: false}}/>
<Stack.Screen name="Search" component={Search} options ={{title: 'Search Screen', headerShown: false}}/>
</Stack.Navigator>
</NavigationContainer>
);
}
const styles = StyleSheet.create({
headerForceInset: { top: 'never', bottom: 'never' },
container: {
flex: 1,
backgroundColor: "red"
}
});