전체 글

개발공부리뷰블로그
· Error
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..
· Error
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..
· 기타
React-Native를 하다가 cocoapos를 설치하려고 명령어를 쳤는데 다음과 같은 오류가 발생했다.❗️ERROR: Error installing cocoapods:The last version of securerandom (>= 0.3) to support your Ruby & RubyGems was 0.3.2. Try installing it with gem install securerandom -v 0.3.2and then running the current command againsecurerandom requires Ruby version >= 3.1.0. The current ruby version is 2.6.10.210. 현재 내 맥북 OS의 Ruby 버전이 너무 낮아서 securer..
FAB 버튼이란?우측 하단에 있는 조그마한 버튼을 일반적으로 "Floating Action Button" (FAB) 이라고 칭한다.추가 이동같은 간단한 작업할때 주로 사용.FAB 버튼 코드import { Alert, StyleSheet, Text, TouchableOpacity } from 'react-native';const FAB: React.FC = () => { const AddLocationListAlert = () => { Alert.prompt(//제목 , // 내용 , [ { text: 'Cancel', onPress: () => { // 취소시 작동하는것 }, style: 'cancel', },..
Object.assign 과 Spread Syntax (...) 둘 다 javascript에서 객체를 복사하거나 병합하는 방법이다.나도 일반적으로 Spread 문법을 주로 사용하고 Object.assign에 대해서는 무지했는데, 이에 대해 알아보기 위해 글을 작성해본다.Object.assign 사용예시const o1 = { a: 1 };const o2 = { b: 2 };const o3 = { c: 3 };const obj = Object.assign(o1, o2, o3);console.log(obj); // { a: 1, b: 2, c: 3 }console.log(o1); // { a: 1, b: 2, c: 3 }, 목표 객체 자체가 변경됨.console.log(o2); // { b: 2 };conso..