diff --git a/.npmrc b/.npmrc index ed8ff3f3..3ae12f5a 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,4 @@ @team-ppointer:registry=https://npm.pkg.github.com -//npm.pkg.github.com/:_authToken=${NPM_TOKEN} \ No newline at end of file +//npm.pkg.github.com/:_authToken=${NPM_TOKEN} + +node-linker=hoisted \ No newline at end of file diff --git a/apps/admin/src/routes/_GNBLayout/qna/index.tsx b/apps/admin/src/routes/_GNBLayout/qna/index.tsx index b5bc4693..21f3ea38 100644 --- a/apps/admin/src/routes/_GNBLayout/qna/index.tsx +++ b/apps/admin/src/routes/_GNBLayout/qna/index.tsx @@ -458,7 +458,7 @@ const MessageBubble = ({ ); case 'text': default: - return
{content}
; + return{content}
; } }; @@ -502,7 +502,7 @@ const MessageBubble = ({ )} {/* Message Content */} -{senderName}
)} diff --git a/apps/native/.gitignore b/apps/native/.gitignore index 722fb5d4..e47fd401 100644 --- a/apps/native/.gitignore +++ b/apps/native/.gitignore @@ -44,3 +44,7 @@ app-example # generated native folders /ios /android + +# Firebase Google Services +google-services.json +GoogleService-Info.plist \ No newline at end of file diff --git a/apps/native/App.tsx b/apps/native/App.tsx index 92c5b468..445bf9f5 100644 --- a/apps/native/App.tsx +++ b/apps/native/App.tsx @@ -1,5 +1,5 @@ import 'react-native-gesture-handler'; -import React from 'react'; +import React, { useState } from 'react'; import { NavigationContainer, DefaultTheme, Theme } from '@react-navigation/native'; import { StatusBar } from 'expo-status-bar'; import { SafeAreaProvider } from 'react-native-safe-area-context'; @@ -8,11 +8,17 @@ import RootNavigator from '@navigation/RootNavigator'; import { colors } from '@theme/tokens'; import '@/app/providers/global.css'; import '@/app/providers/api'; -import { LoadingScreen } from '@components/common'; -import { useLoadAssets } from '@hooks'; +import { CustomSplashScreen } from '@/features/splash/screens/SplashScreen'; +import { useLoadAssets, useDeepLinkHandler } from '@hooks'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; +import { Text, TextInput } from 'react-native'; import Toast from 'react-native-toast-message'; import { toastConfig } from '@/features/student/scrap/components/Notification/Toast'; +import { env } from '@utils'; +import { initializeKakaoSDK } from '@react-native-kakao/core'; +import { navigationRef } from '@/services/navigation'; + +initializeKakaoSDK(env.kakaoNativeAppKey); const queryClient = new QueryClient(); @@ -25,31 +31,39 @@ const navigationTheme: Theme = { }, }; -const linking = { - prefixes: ['pointer://', 'http://localhost:3000'], - config: { - screens: { - AuthCallback: 'auth/callback', - }, - }, -}; +if ((Text as any).defaultProps == null) (Text as any).defaultProps = {}; +(Text as any).defaultProps.allowFontScaling = false; +(Text as any).defaultProps.style = [{ fontFamily: 'Pretendard' }]; + +if ((TextInput as any).defaultProps == null) (TextInput as any).defaultProps = {}; +(TextInput as any).defaultProps.allowFontScaling = false; +(TextInput as any).defaultProps.style = [{ fontFamily: 'Pretendard' }]; export default function App() { - const { loading } = useLoadAssets(); + const { isReady } = useLoadAssets(); + const [isSplashAnimationFinished, setIsSplashAnimationFinished] = useState(false); - if (loading) { - return