forked from MuzammilBhatti03/chatAPP-reactnative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
54 lines (51 loc) · 1.7 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
43
44
45
46
47
48
49
50
51
52
53
54
import { StatusBar } from 'expo-status-bar';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { StyleSheet, View } from 'react-native';
import Login from './components/Login';
import Chatwindow from './components/Chatwindow';
import Home from './components/Home';
import UsersPanel from './components/UsersPanel';
import Forums from './components/Forums';
import UserChatScreen from './components/UserChatScreen';
const Stack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Login">
<Stack.Screen
name="Login"
component={Login}
options={{ headerShown: false }} // Hide header if desired
/>
<Stack.Screen
name="Home"
component={Home}
options={{ title: 'Home',
headerStyle:{backgroundColor: '#333B56',color: "white"},
headerTintColor: "white",
headerShown: false
}}
/>
<Stack.Screen
name="Chat"
component={Chatwindow}
options={{ title: 'Chat',headerShown: false }}
/>
<Stack.Screen name="UsersPanel" component={UsersPanel} />
<Stack.Screen name="Forums" component={Forums} />
<Stack.Screen name="UserChat" component={UserChatScreen} />
</Stack.Navigator>
<StatusBar style="auto" />
</NavigationContainer>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
// backgroundColor: 'rgb(41,47,63)',
// alignItems: 'center',
// justifyContent: 'center',
// color: "white",
},
});