-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
20 lines (18 loc) · 684 Bytes
/
App.tsx
File metadata and controls
20 lines (18 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import 'react-native-gesture-handler';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { EndpointModal } from './src/components/EndpointModal';
import { AppNavigator } from './src/navigation/AppNavigator';
import { useAppController } from './src/hooks/useAppController';
export default function App() {
const controller = useAppController();
return (
<SafeAreaProvider>
<NavigationContainer>
<AppNavigator controller={controller} />
<EndpointModal controller={controller} />
</NavigationContainer>
</SafeAreaProvider>
);
}