HelpPageNavigator.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import React from 'react'
  2. import { createNativeStackNavigator } from '@react-navigation/native-stack'
  3. import HelpPage from '../screens/HelpPage';
  4. import FAQPage from '../screens/FAQPage';
  5. import ContactUsPage from '../screens/ContactUsPage';
  6. import TermsConditionsPage from '../screens/TermsConditionsPage';
  7. import PrivacyPolicyPage from '../screens/PrivacyPolicyPage';
  8. import AboutUsPage from '../screens/AboutUsPage';
  9. const Stack = createNativeStackNavigator();
  10. const HelpPageNavigator = ({ route, navigation}) => {
  11. return (
  12. <Stack.Navigator
  13. initialRouteName='MainHelp'
  14. >
  15. <Stack.Screen
  16. name="MainHelp"
  17. options={(navigation) => ({
  18. headerShown: false
  19. })}
  20. component={HelpPage}
  21. />
  22. <Stack.Screen
  23. name="FAQ"
  24. options={(navigation) => ({
  25. headerShown: false
  26. })}
  27. component={FAQPage}
  28. />
  29. <Stack.Screen
  30. name="ContactUs"
  31. options={(navigation) => ({
  32. headerShown: false
  33. })}
  34. component={ContactUsPage}
  35. />
  36. <Stack.Screen
  37. name="Terms&Conditions"
  38. options={(navigation) => ({
  39. headerShown: false
  40. })}
  41. component={TermsConditionsPage}
  42. />
  43. <Stack.Screen
  44. name="PrivacyPolicy"
  45. options={(navigation) => ({
  46. headerShown: false
  47. })}
  48. component={PrivacyPolicyPage}
  49. />
  50. <Stack.Screen
  51. name="AboutUs"
  52. options={(navigation) => ({
  53. headerShown: false
  54. })}
  55. component={AboutUsPage}
  56. />
  57. </Stack.Navigator>
  58. )
  59. }
  60. export default HelpPageNavigator;