-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.tsx
31 lines (27 loc) · 1012 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
24
25
26
27
28
29
30
import { HomeScreen } from './screens/HomeScreen/HomeScreen';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { NavigationContainer } from '@react-navigation/native';
import { StockDataProvider } from './shared/context/StockData';
import { ResultScreen } from './screens/ResultScreen';
import { StackParamList } from './shared/types/StackParamList.type';
const Stack = createNativeStackNavigator<StackParamList>();
export default function App() {
return (
<NavigationContainer>
<StockDataProvider>
<Stack.Navigator initialRouteName='Home'>
<Stack.Screen
name='Home'
component={HomeScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name='Result'
component={ResultScreen}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</StockDataProvider>
</NavigationContainer>
);
}