LandingPageNavigator.jsx 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import { StyleSheet, Text, View } from 'react-native'
  2. import React from 'react'
  3. import { createNativeStackNavigator } from '@react-navigation/native-stack';
  4. import UnsignedPage from '../screens/Auth/UnsignedPage';
  5. import LandingPage from '../screens/Auth/LandingPage';
  6. import SignInPage from '../screens/Auth/SignInPage';
  7. import SignUpPage from '../screens/Auth/SignUpPage';
  8. import ChooseTopicPage from '../screens/Auth/ChooseTopicPage';
  9. import FillProfile from '../screens/Profile/FillProfile';
  10. import ForgotPasswordPage from '../screens/Auth/ForgotPasswordPage';
  11. import OTPPage from '../screens/Auth/OTPPage';
  12. import NewsListPage from '../screens/News/NewsListPage';
  13. import NewsDetailPage from '../screens/News/NewsDetailPage';
  14. const Stack = createNativeStackNavigator()
  15. const defaultScreenOptions = {
  16. headerShown: false
  17. }
  18. const LandingPageNavigator = () => {
  19. return (
  20. <Stack.Navigator initialRouteName="Landing">
  21. <Stack.Screen
  22. name="Landing"
  23. component={LandingPage}
  24. options={{ ...defaultScreenOptions }}
  25. />
  26. <Stack.Screen
  27. name="UnsignedPage"
  28. component={UnsignedPage}
  29. options={{ ...defaultScreenOptions }}
  30. />
  31. <Stack.Screen
  32. name="SignIn"
  33. component={SignInPage}
  34. options={{ ...defaultScreenOptions }}
  35. />
  36. <Stack.Screen
  37. name="SignUp"
  38. component={SignUpPage}
  39. options={{ ...defaultScreenOptions }}
  40. />
  41. <Stack.Screen
  42. name="ChooseTopic"
  43. component={ChooseTopicPage}
  44. options={{ ...defaultScreenOptions }}
  45. />
  46. <Stack.Screen
  47. name="FillProfile"
  48. component={FillProfile}
  49. options={{ ...defaultScreenOptions }}
  50. />
  51. <Stack.Screen
  52. name="ForgotPassword"
  53. component={ForgotPasswordPage}
  54. options={{ ...defaultScreenOptions }}
  55. />
  56. <Stack.Screen
  57. name="OTP"
  58. component={OTPPage}
  59. options={{ ...defaultScreenOptions }}
  60. />
  61. <Stack.Screen
  62. name="NewsDetailPage"
  63. component={NewsDetailPage}
  64. options={{ ...defaultScreenOptions }}
  65. />
  66. <Stack.Screen
  67. name="NewsListPage"
  68. component={NewsListPage}
  69. options={{ ...defaultScreenOptions }}
  70. />
  71. </Stack.Navigator>
  72. )
  73. }
  74. export default LandingPageNavigator