사진과 같이 import가 많이질수록 코드가 점전 늘어나고 복잡해진다.이러한 문제를 해결하기 위해 절대 경로를 써준다.../../ 다음과 같은 부분을 @ 로 고치는 방법을 서술한다.babel 플러그인 설치yarn add -D babel-plugin-module-resolverornpm i -D babel-plugin-module-resolverbabel.config.js 에 플러그인 추가module.exports = { presets: ... plugins: [ ... [ 'module-resolver', { alias: { '@': './src', }, }, ], ],};해당 코드의 plugins 부분에 아래와 같은..
postgresql 설치 바법brew 로 설치구글에 homebrew postgresql 검색후에 → 사이트들어가서 brew install postgresql@14다음 명령어를 터미널에 실행 ⭕️ 전부 설치후 실행명령어brew services start postgresql@14❌ 정지 명령어brew services stop postgresql@14
Q. react-native 에서 npm에서 라이브러리를 설치한 이후에 다음 명령어를 꼭 쳐준다 이유가 뭘까?A. React Native에서 라이브러리를 설치하면, JavaScript 부분은 자동으로 반영되지만 iOS 네이티브 환경에는 바로 반영되지 않는다.iOS 네이티브 환경에서는 CocoaPods가 라이브러리를 관리하므로, 새로운 라이브러리를 설치한 후에는 CocoaPods 설정을 갱신해야 된다.하지만 CocoaPods는 자동으로 갱신되지 않기 때문에, npx pod-install ios 명령어를 수동으로 실행하여 새 라이브러리를 iOS 프로젝트에 반영한다.
1. Encrypted Storage 설치먼저 Encrypted Storage 패키지를 설치npm install react-native-encrypted-storageyarn add react-native-encrypted-storage만약 React Native CLI 프로젝트를 사용 중이라면, iOS를 위해 추가적으로 아래 명령어를 실행npx pod-install ios2. Encrypted Storage란?Encrypted Storage는 웹의 Local Storage와 유사한 기능을 제공하지만, 차이점도 존재비동기적 처리: async/await 문법 사용보안성: 데이터를 자동으로 암호화하여 저장하고, 필요 시 복호화하여 읽기이를 통해 민감한 데이터를 안전하게 관리가 가능3. 기본 사용법값 저장 함..
react-native 0.72.6 버젼을 다음과 같이 설치했다.npx react-native@0.72.6 init --version 0.72.6설치이후에 프로젝트를 맥북에서 ios로 실행을 시켰는데 멈춘 코드지점Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace tttt.xcworkspace -configuration Debug -scheme tttt -destination id=26AFEFAB-4891-476B-A3A7-345D1AB17C5FUser defaults from command line: IDEPackageSupportUseBuiltinSCM = YESPr..
2024.12.24 일에 발생한 오류❗️핵심 오류 문구Execution failed for task ':react-native-safe-area-context:compileDebugKotlin'.A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkActionCompilation error. See log for more details❗️진행도중의 오류 문항info Opening the app on Android...info JS server already running.info Installing the app...> Task :g..