분류 전체보기
-
17. 탭메뉴 배지 사용하기 - 해당 날짜의 할일 갯수 보여주기프로젝트/할일목록 앱 (RN) 2023. 10. 27. 17:53
* 특정날짜의 할일목록만 추출하는 기능을 함수로 정의하기 export const getTodosToday = (date, todos) => { const today = getToday(date) // 시간제외 const tomorrow = getTomorrow(getToday(date)) const todosToday = todos.filter(todo => todo.createdAt?.toDate() >= today && todo.createdAt?.toDate() time.js 파일에 해당 코드를 추가한다. import React, { useState, useEffect, useRef } from 'react' /..
-
16. 전체 로그인 로직 수정하기프로젝트/할일목록 앱 (RN) 2023. 10. 27. 11:03
* 로그인 로직의 현재 문제점과 고려할 부분 안드로이드의 로컬 스토리지(AsyncStorage)는 사용하지 않는다. => 이유는 사용자가 로그인후 앱을 껐다 키면 로그인이 되어 있는 상태이나 로컬 스토리지에 저장된 사용자 정보는 사라지기 때문에 로그인이 되어있더라도 사용자 정보가 없는 문제가 발생한다. {!isLoggedIn && } stackRouter 컴포넌트에서 해당 부분이 문제가 된다. 사용자가 로그인하기 전에는 isLoggedIn 상태가 false 이므로 로딩시 랜딩페이지도 함께 로딩된다. 하지만 사용자가 앱을 종료하고 다시 시작하면 isLoggedIn 은 true 가 되기 때문에 로딩시 랜딩페이지는 로딩되지 않는다. 이렇게 되면 사용자가 로그인후 곧바로 로그아웃을 할때는 랜딩페이지가 메모리에 ..
-
14. 구글폰트 적용하기 - 랜딩페이지 문구 변경프로젝트/할일목록 앱 (RN) 2023. 10. 26. 14:51
https://dwbyun.tistory.com/7 [React Native] 0.70버전 custom font 적용하기 (react-native-cli) 이번 글에서는 react native 현재 최신 버전인 0.70.1 버전에서 custom font 적용하는 방법을 포스팅하려고 합니다. 우선 프로젝트를 생성하고 App.js 파일을 수정합니다. npx react-native init AwesomeProject import dwbyun.tistory.com https://fonts.google.com/specimen/Nanum+Pen+Script?subset=korean¬o.script=Kore Nanum Pen Script - Google Fonts Nanum Pen Script is a cont..
-
15. LoginButton 컴포넌트에 소셜 로그인 기능 구현하기프로젝트/할일목록 앱 (RN) 2023. 10. 26. 12:58
https://github.com/react-native-google-signin/google-signin GitHub - react-native-google-signin/google-signin: Google Sign-in for your React Native applications Google Sign-in for your React Native applications. Contribute to react-native-google-signin/google-signin development by creating an account on GitHub. github.com * SettingsScreen 컴포넌트에 구현된 소셜로그인 기능을 LoginButton 컴포넌트로 옮기기 npm install @re..
-
13. 스택 네비게이터를 이용하여 네비게이션하기프로젝트/할일목록 앱 (RN) 2023. 10. 26. 11:58
/** * @format */ import {AppRegistry} from 'react-native'; import stackRouter from './stackRouter'; import {name as appName} from './app.json'; AppRegistry.registerComponent(appName, () => stackRouter); 루트 디렉토리의 index.js 파일을 위와 같이 수정한다. LandingScreen 대신에 stackRouter 컴포넌트를 화면에 보여준다. import React, { useState, useEffect } from 'react' import { View, Text, StyleSheet, ActivityIndicator } from 'react..
-
12. 랜딩페이지 구현하기프로젝트/할일목록 앱 (RN) 2023. 10. 25. 15:18
https://medium.com/backticks-tildes/create-a-custom-app-intro-slider-in-react-native-4308fae83ad1 Create a custom App Intro Slider in React Native One great way to give users a feel of what your application is about is to have a couple of screens be displayed to them the first time… medium.com https://velog.io/@syoung125/3%EC%9B%94-%EC%9D%B8%ED%84%B4%EC%9D%BC%EC%A7%80-3-React-Native-animated-%EC..
-
11. 설정화면 - 구글 로그인 이후 사용자 프로필 보여주기프로젝트/할일목록 앱 (RN) 2023. 10. 25. 09:48
https://github.com/react-native-google-signin/google-signin GitHub - react-native-google-signin/google-signin: Google Sign-in for your React Native applications Google Sign-in for your React Native applications. Contribute to react-native-google-signin/google-signin development by creating an account on GitHub. github.com * 구글 로그인후 프로필 정보 보여주기 & 로그아웃 구현하기 import React, { useEffect, useState } fr..
-
10. 소셜로그인 - 구글 로그인프로젝트/할일목록 앱 (RN) 2023. 10. 24. 17:15
https://lucky516.tistory.com/306 ReactNative Firebase 구글 로그인 카카오 로그인보다 더 말썽일가 싶었는데 구글로그인도 생각보다 말썽이다 1. 기초설정 먼저 하기 링크에서 기초 환경세팅을 설정한다 https://rnfirebase.io React Native Firebase | React Native Firebase Welcome lucky516.tistory.com * 구글 로그인을 위한 라이브러리 추가하기 @react-native-google-signin/google-signin * 안드로이드 파일 설정하기 android/build.gradle에 들어가서 아래와 같이 추가한다. buildscript { ext { ... 중략 googlePlayServicesA..