App.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. */
  7. import { NavigationContainer } from '@react-navigation/native';
  8. import React from 'react';
  9. import 'react-native-gesture-handler';
  10. import { createNativeStackNavigator } from '@react-navigation/native-stack';
  11. import {
  12. SafeAreaView,
  13. ScrollView,
  14. StatusBar,
  15. StyleSheet,
  16. Text,
  17. useColorScheme,
  18. View,
  19. } from 'react-native';
  20. import LoginPage from './src/screens/LoginPage';
  21. import HomePageNavigator from './src/navigation/HomePageNavigator';
  22. import { GestureHandlerRootView } from 'react-native-gesture-handler';
  23. import UnsignedLandingPage from './src/screens/UnsignedLandingPage';
  24. const AppStack = createNativeStackNavigator();
  25. const App = () => {
  26. return (
  27. <NavigationContainer>
  28. <AppStack.Navigator headerShown={true}>
  29. <AppStack.Screen
  30. name="Login"
  31. component={LoginPage}
  32. options={{
  33. headerShown: false,
  34. }}
  35. />
  36. <AppStack.Screen
  37. name="Home"
  38. component={HomePageNavigator}
  39. options={{ headerShown: false }}
  40. />
  41. <AppStack.Screen
  42. name='UnsignedLanding'
  43. component={UnsignedLandingPage}
  44. options={{ headerShown: false }}
  45. />
  46. </AppStack.Navigator>
  47. {/* <View style={styles.appContainer}>
  48. <Text>App</Text>
  49. </View> */}
  50. </NavigationContainer>
  51. );
  52. };
  53. const styles = StyleSheet.create({
  54. appContainer: {
  55. flex: 1,
  56. },
  57. });
  58. export default App;