Solve Problem 134

[React Native] Could not find "client" in the context or passed in as an option 에러 해결법

Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.분명 ApolloProvider에 client를 잘 넣었는데 이러한 오류가 발생할 때가 있다.그럴 땐 useMutation(또는 useQuery or useLazyQuery)를 import 하는 패키지를 확인하자.import { gql, ApolloError, useMutation } from '@apollo/client'; // no!!!!import { useLazyQuery } from '@apollo/react-hooks';import { ..

[React Native] Upgrade 0.61.5 to 0.63.4

업데이트를 하자! 제가 운영중인 루빗이라는 어플을 처음 init한지 벌써 1년이 되었어요! react-native 버전이 그새 많이 올라서 업그레이드를 해보려고 합니다. Upgrade Helper Step 1 - Edit Code https://react-native-community.github.io/upgrade-helper 이 사이트를 이용하면 원하는 버전으로의 업데이트를 위해 무엇을 해야하는지 알 수 있어요. 저는 0.61.5에서 0.63.4로 업그레이드를 할겁니다! https://react-native-community.github.io/upgrade-helper/?from=0.61.5&to=0.63.4 여기에 나와있는대로 코드를 수정해주세요. 참고) storyboard 추가하기 기존 ios/R..

[React Native / Android] unexpected element <queries> found in <manifest>

에러unexpected element found in 해결법android/build.gradleAndroid Gradle plugin 버전을 3.4.2에서 3.4.3으로 바꿔준다.classpath("com.android.tools.build:gradle:3.4.3")참고 링크https://github.com/ivpusic/react-native-image-crop-picker/issues/1406https://stackoverflow.com/questions/62969917/how-do-i-fix-unexpected-element-queries-found-in-manifesthttps://android-developers.googleblog.com/2020/07/preparing-your-build-f..

react-native-iap 인앱결제 적용하기

라이브러리react-native-iap: 5.1.3https://github.com/dooboolab/react-native-iap1. 라이브러리 설치$ npm install --save react-native-iap$ cd ios && pod install && cd ..# 그 외 -> https://github.com/dooboolab/react-native-iap#getting-started 참고2. AndroidAPK 등록github.com/dooboolab/react-native-iap/issues/618#issuecomment-523384825상품 등록requestPurchase오류!? 뭘했길래이걸로 바뀌었지?시간이 바뀌어서. - https://www.androidhub4you.com/20..

[React Native] ScrollView과 position: absolute를 같이 쓰고 싶을 때 (flex를 이용하는 방법)

목표 각각의 탭을 클릭했을 때 나오는 content가 scrollview이면서 그 scrollview의 position이 absolute이고, zIndex로 해당 scrollview를 보여주고 숨기고를 구현하고 싶었다. 실패 여느 view를 구현하듯이 scrollview에도 position: 'absolute'를 적용했더니, 끝까지 스크롤되지 않았다. 구글링을 많이 해봤지만 통하지 않았다. 해결법 position: 'relative'. 즉 position은 건들지 않고, flex만 건들면 되는 문제였다. height도 설정해줘야 한다. 그렇지 않으면 완전히 겹쳐지지 않는다. 나같은 경우는 1000으로 설정했지만, 실제로 1000까지 스크롤되지는 않는다. 코드 {/* S1 *} {...content} {/..

[React Native / iOS] Admob 에러 - [admob/unknown] the provided view controller is already presenting another view controller

에러 [admob/unknown] the provided view controller is already presenting another view controller 원인 다른 화면에서 광고를 사용하고 있는데, 광고 id가 다름에도 불구하고. 알고보니, 나는 react-native-modal을 이용해 모달을 띄운 후 그 안에서 광고를 불러오려고 시도하고 있었다. 즉 현재 스크린 위에 모달이라는 뷰가 하나 더 덮여쓰여진 것이다. 그래서 위 에러가 났던 것이다. 그래서 모달에서는 광고를 띄우지 않으면, 광고는 정상적으로 불러와진다!

[React Native / Android] Task :~~library~~:verifyReleaseResources FAILED

1. 버그 > Task :react-native-disable-battery-optimizations-android:verifyReleaseResources FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-disable-battery-optimizations-android:verifyReleaseResources'. > 1 exception was raised by workers: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed error: resource a..

iOS 13 이미지 렌더링 안됨

문제iOS 14 시뮬레이터는 되는데iOS 13 실제 기기에서만 이미지 렌더링이 안됐음.  0. 이 링크의 이슈에서 언급하는 에러가 났음github.com/ios-control/ios-deploy/issues/109#issuecomment-92589783 Command fails: npm install ios-deploy -g · Issue #109 · ios-control/ios-deployOSX 10.10.2. ios-deploy: command not found Xcode 6.2 (Build 6C131e) /Applications/Xcode.app/Contents/Developer gcc --version Configured with: --prefix=/Applications/Xcode.app/Con..

출처: https://mingos-habitat.tistory.com/34 [밍고의서식지:티스토리]