-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tsx
38 lines (34 loc) · 1.85 KB
/
Main.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
37
38
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { RootStackParamList } from './types';
import { Auth, ForgotPassword, ResetPassword, ResetSuccess, VerifyResetPassword } from './screens/Auth';
import { Country, NewsSource, NewsTopics, OnBoarding } from './screens';
import { Profile } from "./screens/Home"
import NewsType from './screens/NewsType';
import Home from './screens/Home/Home';
const Stack = createNativeStackNavigator<RootStackParamList>()
export default function Main() {
return (
<NavigationContainer>
<Stack.Navigator screenOptions={{ header: () => null }}>
<Stack.Screen name="OnBoarding" component={OnBoarding} />
<Stack.Screen name="Auth" component={Auth} />
<Stack.Screen name="NewsType" component={NewsType} />
<Stack.Screen name="ResetSuccess" component={ResetSuccess} />
<Stack.Screen name="ForgotPassword" component={ForgotPassword} />
<Stack.Screen name="VerifyResetPassword" component={VerifyResetPassword} />
<Stack.Screen name="ResetPassword" component={ResetPassword} />
<Stack.Screen name="Country" component={Country} />
<Stack.Screen name="NewsTopics" component={NewsTopics} />
<Stack.Screen name="NewsSource" component={NewsSource} />
<Stack.Screen name="Profile" component={Profile} />
<Stack.Screen name="Home" component={Home} />
{/* <Stack.Screen name="ResetSuccess" component={ResetSuccess} />
<Stack.Screen name="ResetSuccess" component={ResetSuccess} />
<Stack.Screen name="ResetSuccess" component={ResetSuccess} />
<Stack.Screen name="ResetSuccess" component={ResetSuccess} />
<Stack.Screen name="ResetSuccess" component={ResetSuccess} /> */}
</Stack.Navigator>
</NavigationContainer>
);
}