-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
36 lines (34 loc) · 1.07 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'mobx-react-lite/batchingForReactNative';
import 'react-native-gesture-handler';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { Home } from './screens/home.screen';
import { Provider } from 'mobx-react';
import { Results } from './screens/results.screen';
import { RootStackParamList } from './types/navigator.types';
import { dark3 } from './theme/colors';
const AppStack = createStackNavigator<RootStackParamList>();
export default function App() {
return (
<Provider>
<NavigationContainer>
<AppStack.Navigator
screenOptions={{
headerBackTitleVisible: false,
headerTintColor: dark3,
}}
>
<AppStack.Screen
options={{
header: () => null,
}}
name="Home"
component={Home}
/>
<AppStack.Screen name="Results" component={Results} />
</AppStack.Navigator>
</NavigationContainer>
</Provider>
);
}