-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
23 lines (21 loc) · 893 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import ChatPage from './src/page/ChatPage';
import ChatList from './src/page/ChatList';
import Home from './src/page/Home';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
const Stack = createStackNavigator();
const queryClient = new QueryClient();
export default function App() {
return (
<NavigationContainer>
<QueryClientProvider client={queryClient}>
<Stack.Navigator>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="ChatList" component={ChatList} />
<Stack.Screen name="ChatPage" component={ChatPage} />
</Stack.Navigator>
</QueryClientProvider>
</NavigationContainer>
);
}