You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

5 months ago
  1. import React from "react";
  2. import { SafeAreaView } from 'react-native-safe-area-context';
  3. import { StatusBar } from "react-native";
  4. import { ScrollView } from "react-native";
  5. import AuthProvider from "@components/AuthProvider";
  6. import * as SplashScreen from 'expo-splash-screen';
  7. import { Slot, Stack } from "expo-router";
  8. SplashScreen.preventAutoHideAsync();
  9. export const unstable_settings = {
  10. initialRouteName: 'auth/login',
  11. }
  12. function App() {
  13. const backgroundStyle = {
  14. backgroundColor: "#333333",
  15. fontFamily: "Pretendard-Regular",
  16. color: "white",
  17. };
  18. SplashScreen.hideAsync();
  19. return (
  20. <SafeAreaView style={{ ...backgroundStyle, height: "100%", flex:1 }}>
  21. <AuthProvider>
  22. <StatusBar
  23. barStyle={"light-content"}
  24. backgroundColor={backgroundStyle.backgroundColor}
  25. />
  26. <ScrollView
  27. style={{
  28. paddingHorizontal: 16,
  29. height: "auto",
  30. backgroundColor: "#333333",
  31. }}
  32. >
  33. <Slot />
  34. </ScrollView>
  35. </AuthProvider>
  36. </SafeAreaView>
  37. );
  38. }
  39. export default App;