-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
27 lines (24 loc) · 847 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
import 'react-native-gesture-handler';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Provider } from 'react-redux';
import { store } from './app/store';
import Home from './app/static/Home';
import Chat from './app/static/Chat';
import ChatList from './app/static/ChatList';
const Stack = createStackNavigator();
const App = () => {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="ChatList" component={ChatList} />
<Stack.Screen name="Chat" component={Chat} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
};
export default App;