본문 바로가기

프로그래밍/React Native24

[React Native] Google AdMob 시작하기 invertase/react-native-firebase 🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services. - invertase/react-native-firebase github.com ...를 사용하여 구글의 애드몹을 붙여보자 공식문서는 https://rnfirebase.io/ 이거인 거 같은데, AdMob 관련자료는 https://rnfb-docs.netlify.app/admob/usage 여기에 있다(무슨 차인지 아시는 분 댓글 좀...) React Native Firebase | React .. 2021. 7. 19.
[React Native] iOS 실행시 에러(arm64 관련) m1 맥북 Xcode: 12.4 react: "17.0.1" react-native: "0.64.1" React Native로 iOS나 aOS를 빌드할 때 발생하는 에러를 가볍게 무시하면 엄청난 삽질을... 개발을 진행하다 이런 에러를 만났다 The linked library 'libPods-xxx.a' is missing one or more architectures required by this target: arm64. 딱 이 에러를 만났을 때 다른 짓(?) 하지 말고 바로... Build Settings > Architectures로 이동하여 그림처럼 arm64를 추가해주고 다시 빌드하면 성공! 끝. 2021. 5. 9.
[React Native] .jsx 확장자 사용시 에러 및 설정 방법 프로젝트를 생성하고 .js 파일만으로도 충분히 개발이 가능하다 하지만 개발시 명시적인게 좋아서 JSX 파일에 .jsx 확장자를 사용하고 설정하는 방법을 알아보자 일단 프로젝트를 새로 생성 후 보이는 App.js 파일을 App.jsx로 바꾸고, npx react-native start npx react-native run-ios yarn이 설치되어 있다면 npx대신 사용해도 된다 Metro와 Application을 다시 실행해보면 에러가 발생한다 에러메시지 중, None of these files exist라고 나오면서 .jsx로 바꾼 파일명 뒤에 (.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios... 2021. 3. 14.
[React Native] iOS 실행시 에러(Flipper 관련) Xcode: 12.4 react: "16.13.1" react-native: "0.63.4" 새로운 프로젝트 생성 후 npx react-native run-ios를 실행했는데 에러가 발생했다. 뭐지?! 터미널을 확인해보니, warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Flipper' from project 'Pods') 그리고 Xcode에서는 event2/event-config.h file not found 이런 경고가 있어서 검색을 해보았다.. 2021. 3. 8.
[React Native] iOS 환경 설정 중 발생하는 에러 iOS 환경 설정 중, [React Native] 개발에 필요한 아이들 설치부터 실행까지 시켜보자 mac OS Catalina를 기준으로 설치한다. Homebrew https://brew.sh/ Homebrew The Missing Package Manager for macOS (or Linux). brew.sh 홈페이지에 보면 Apple(또는 Linux 시스템)에서 제공하지 않는 유용한 패.. success206.tistory.com 프로젝트 초기화 및 생성 부분(npx react-native init ...)에서 프로젝트 이름을 "test-1" 이렇게 작성하면 error "test-1" is not a valid name for a project. Please use a valid identifier.. 2021. 3. 8.