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
44 lines
1.1 KiB
import React from "react";
|
|
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
import { StatusBar } from "react-native";
|
|
|
|
import { ScrollView } from "react-native";
|
|
import AuthProvider from "@components/AuthProvider";
|
|
import * as SplashScreen from 'expo-splash-screen';
|
|
import { Slot, Stack } from "expo-router";
|
|
|
|
SplashScreen.preventAutoHideAsync();
|
|
|
|
export const unstable_settings = {
|
|
initialRouteName: 'auth/login',
|
|
}
|
|
|
|
function App() {
|
|
const backgroundStyle = {
|
|
backgroundColor: "#333333",
|
|
fontFamily: "Pretendard-Regular",
|
|
color: "white",
|
|
};
|
|
SplashScreen.hideAsync();
|
|
return (
|
|
<SafeAreaView style={{ ...backgroundStyle, height: "100%", flex:1 }}>
|
|
<AuthProvider>
|
|
<StatusBar
|
|
barStyle={"light-content"}
|
|
backgroundColor={backgroundStyle.backgroundColor}
|
|
/>
|
|
<ScrollView
|
|
style={{
|
|
paddingHorizontal: 16,
|
|
height: "auto",
|
|
backgroundColor: "#333333",
|
|
}}
|
|
>
|
|
<Slot />
|
|
</ScrollView>
|
|
</AuthProvider>
|
|
</SafeAreaView>
|
|
);
|
|
}
|
|
|
|
export default App;
|