-
Notifications
You must be signed in to change notification settings - Fork 0
카카오 로그인,로그아웃 기능 구현 및 홈 스택페이지 구현 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
The head ref may contain hidden characters: "20250603_#9_6\uC6D44\uC77C_\uAE30\uB2A5\uCD94\uAC00_\uC18C\uC15C\uB85C\uADF8\uC778_\uCE74\uCE74\uC624_\uB85C\uADF8\uC778"
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d10d2bf
카카오 로그인,로그아웃 기능 구현 및 홈 스택페이지 구현
thswogh 4c30c69
fix: 충돌,설정파일 문제 해결
thswogh cfacfc6
fix: node_modules 설정 오류 해결
thswogh 7a92af1
fix: 패키지 충돌 해결 및 의존성 업데이트
thswogh 77bb87f
fix: 패키지 버전 수정
thswogh 1a1922b
fix: eslint오류 해결
thswogh 985e956
fix: package-lock.json .gitignore에 추가
thswogh c686f15
fix: 에러 해결
thswogh e0bb095
fix: ci워크플로우에서 yarn.lock 파일 삭제
thswogh b9875db
fix: ci 워크플로우에서 모든 lock 파일 제거
thswogh edef31a
fix: 의존성 버전 고정, package-lock.json 추가
thswogh 91f8111
fix: ci 워크플로우에서 lock 파일 삭제 제거
thswogh f31cdc7
fix: main 브랜치 머지 충돌 해결
thswogh b1e112a
fix: esint 네이티브 바인딩 오류 해결
thswogh 85253d6
fix: eslint import/no-unresolved 규칙 비활성화
thswogh 7920d04
fix: ci파일 typescript검사 비활성화
thswogh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| EXPO_PUBLIC_KAKAO_REST_API_KEY=fcc79e9199b5dbcaedfc00bb30b3d4af | ||
| EXPO_PUBLIC_SERVER_BASE_URL=https://api.dailysnap.app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,6 @@ node_modules | |
| android | ||
| ios | ||
| build | ||
| dist | ||
| dist | ||
| tailwind.config.js | ||
| app.config.js | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
|
|
||
| # dependencies | ||
| node_modules/ | ||
| yarn.lock | ||
|
|
||
| # Expo | ||
| .expo/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ node_modules | |
| android | ||
| ios | ||
| build | ||
| dist | ||
| dist | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| export default { | ||
| expo: { | ||
| name: "DailySnap-FE", | ||
| slug: "DailySnap-FE", | ||
| version: "1.0.0", | ||
| orientation: "portrait", | ||
| scheme: "dailysnap", | ||
| userInterfaceStyle: "light", | ||
| newArchEnabled: true, | ||
| splash: { | ||
| resizeMode: "contain", | ||
| backgroundColor: "#ffffff" | ||
| }, | ||
| ios: { | ||
| supportsTablet: true, | ||
| bundleIdentifier: "com.jhsonny.DailySnapFE" | ||
| }, | ||
| android: { | ||
| adaptiveIcon: { | ||
| backgroundColor: "#ffffff" | ||
| }, | ||
| package: "com.jhsonny.DailySnapFE" | ||
| }, | ||
| web: { | ||
| bundler: "metro", | ||
| output: "static", | ||
| favicon: "./assets/images/favicon.png" | ||
| }, | ||
| plugins: [ | ||
| "expo-router", | ||
| "expo-font" | ||
| ], | ||
| experiments: { | ||
| typedRoutes: true | ||
| } | ||
| } | ||
| }; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| import { Tabs } from "expo-router"; | ||
|
|
||
| export default function TabsLayout() { | ||
| return ( | ||
| <Tabs | ||
| screenOptions={{ | ||
| headerShown: false, | ||
| }} | ||
| > | ||
| <Tabs.Screen | ||
| name="home" | ||
| options={{ | ||
| title: "홈", | ||
| }} | ||
| /> | ||
|
|
||
| <Tabs.Screen | ||
| name="archive" | ||
| options={{ | ||
| title: "아카이브", | ||
| }} | ||
| /> | ||
|
|
||
| <Tabs.Screen | ||
| name="upload" | ||
| options={{ | ||
| title: "업로드", | ||
| }} | ||
| /> | ||
|
|
||
| <Tabs.Screen | ||
| name="awards" | ||
| options={{ | ||
| title: "우수작", | ||
| }} | ||
| /> | ||
|
|
||
| <Tabs.Screen | ||
| name="profile" | ||
| options={{ | ||
| title: "마이", | ||
| }} | ||
| /> | ||
| </Tabs> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import React from "react"; | ||
| import ArchivePage from "../../pages/archive/ArchivePage"; | ||
|
|
||
| export default function ArchiveTab() { | ||
| return <ArchivePage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import React from "react"; | ||
| import AwardsPage from "../../pages/awards/AwardsPage"; | ||
|
|
||
| export default function AwardsTab() { | ||
| return <AwardsPage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import React from "react"; | ||
| import HomePage from "../../pages/home/HomePage"; | ||
|
|
||
| export default function HomeTab() { | ||
| return <HomePage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import React from "react"; | ||
| import ProfilePage from "../../pages/profile/ProfilePage"; | ||
|
|
||
| export default function ProfileTab() { | ||
| return <ProfilePage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import React from "react"; | ||
| import UploadPage from "../../pages/upload/UploadPage"; | ||
|
|
||
| export default function UploadTab() { | ||
| return <UploadPage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,36 @@ | ||
| import NetInfo from "@react-native-community/netinfo"; | ||
| import { onlineManager, QueryClientProvider } from "@tanstack/react-query"; | ||
| import { Stack } from "expo-router"; | ||
| import { StatusBar } from "expo-status-bar"; | ||
| import { SafeAreaProvider } from "react-native-safe-area-context"; | ||
| import { queryClient } from "../shared/api/query-client"; | ||
| import { AuthProvider } from "../features/auth/model/AuthContext"; | ||
| import "../global.css"; | ||
|
|
||
| onlineManager.setEventListener(setOnline => { | ||
| return NetInfo.addEventListener(state => { | ||
| setOnline(!!state.isConnected); | ||
| }); | ||
| }); | ||
|
|
||
| export { default as styled } from "nativewind"; | ||
|
|
||
| export default function RootLayout() { | ||
| return ( | ||
| <QueryClientProvider client={queryClient}> | ||
| <Stack> | ||
| <Stack.Screen name="index" /> | ||
| </Stack> | ||
| </QueryClientProvider> | ||
| <SafeAreaProvider> | ||
| <QueryClientProvider client={queryClient}> | ||
| <AuthProvider> | ||
| <StatusBar style="auto" /> | ||
| <Stack screenOptions={{ headerShown: false }}> | ||
| {/* 인증 관련 스크린 */} | ||
| <Stack.Screen name="index" /> | ||
| <Stack.Screen name="login" /> | ||
|
|
||
| {/* 메인 앱 스크린 */} | ||
| <Stack.Screen name="(tabs)" /> | ||
| </Stack> | ||
| </AuthProvider> | ||
| </QueryClientProvider> | ||
| </SafeAreaProvider> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,31 @@ | ||
| import { SafeAreaView, ScrollView, Text } from "react-native"; | ||
| /*eslint-disable */ | ||
| import React, { useEffect } from "react"; | ||
| import { useRouter } from "expo-router"; | ||
| import { useAuth } from "../features/auth/model/AuthContext"; | ||
| import { View, ActivityIndicator } from "react-native"; | ||
|
|
||
| export default function App() { | ||
| const router = useRouter(); | ||
| const { userInfo } = useAuth(); | ||
|
|
||
| useEffect(() => { | ||
| const timer = setTimeout(() => { | ||
| if (userInfo) { | ||
| // 로그인된 사용자면, 홈 네비게이션으로 이동 | ||
| router.replace("/(tabs)/home"); | ||
| } else { | ||
| // 로그인되지 않았으면 로그인 페이지로 이동 | ||
| router.replace("/login"); | ||
| } | ||
| }, 100); | ||
|
|
||
| return () => clearTimeout(timer); | ||
| }, [userInfo, router]); | ||
|
|
||
| // 로딩 화면 표시. TODO: 추후에 디자인 된 로딩스피너로 수정 | ||
| return ( | ||
| <SafeAreaView style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> | ||
| <ScrollView style={{ width: "100%", paddingHorizontal: 16 }}> | ||
| <Text>App.tsx to start working on your app!</Text> | ||
| </ScrollView> | ||
| </SafeAreaView> | ||
| <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | ||
| <ActivityIndicator size="large" color="#195B35" /> | ||
| </View> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| import React from "react"; | ||
| import LoginPage from "../pages/auth/LoginPage"; | ||
|
|
||
| export default function Login() { | ||
| return <LoginPage />; | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| module.exports = function (api) { | ||
| api.cache(true); | ||
| return { | ||
| presets: ['babel-preset-expo'], | ||
| plugins: [ | ||
| 'nativewind/babel', | ||
| [ | ||
| 'module-resolver', | ||
| { | ||
| root: ['./'], | ||
| extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'], | ||
| alias: { | ||
| '@': './', | ||
| }, | ||
| }, | ||
| ], | ||
| ], | ||
| }; | ||
| }; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Move global CSS import to the top of the file.
Global CSS imports should be placed before other imports to ensure styles are loaded first and avoid potential timing issues.
🤖 Prompt for AI Agents