728x90

전체 글 131

[React Native - ios/android] kakao login 구현 시 키 해시 생성

프로젝트/android/app 경로로 이동 후 아래 명령어로 키해시를 생성해 등록함 windows 환경에서 개발 시 git bash 터미널에서 진행 여러개의 키 해시를 사용할 경우 kakao에 모두 등록해야咸 $ keytool -exportcert -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android | openssl sha1 -binary | openssl base64 특정 경로의 keystore 에서 key hash 추출 keytool -exportcert -alias androiddebugkey -keystore {your-key-path}/{my-app-key}.keystore -storepass an..

[React Native - android/ios] [MobX] Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ObservableValue

mobx 버전을 5.15.4 --> 6.7.0 으로 업그레이드 했을 시 발생. @action 이 정상적으로 동작하지 않아 기존에 사용하던 로직을 모두 수정해야함 다시 5.15.4로 다운그레이드 하니 정상 동작함 * reference : https://stackoverflow.com/a/64771774/17197148

[React Native - android] crypto 기능 동작 안할 때

갑자기 잘 동작하던 crypto 기능이 동작하지 않는다면, node_moduls 을 지웠다가 설치했다가를 반복했을 경우다. 새로 설치한 node_modules 에 ./node_modules/.bin/rn-nodeify --hack --install 커맨드를 실행하면 해결. 가끔 잊어버리니 기억이 아닌 기록. $ npm i $ npm i react-native-cli -g $ ./node_modules/.bin/rn-nodeify --hack --install * reference : https://github.com/mvayngrib/rn-nodeify#rn-nodeify

[React Native - android] Execution failed for task ':app:mergeDebugNativeLibs'. > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction > 2 files found with path 'lib/armeabi-v7a/libfbjni.so' from inputs: ...

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction > 2 files found with path 'lib/armeabi-v7a/libfbjni.so' from inputs: ... Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 Warning: Mapping new ns http..

[React Native - android] Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: v8

ERROR Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'., js engine: v8 ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bund..

[React Native - android] Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. ... react-native-firebase_app

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not resolve all task depe..

[React Native - android] Maximum call stack size exceeded

react-native 버전을 0.65.1 --> 0.69.7로 변경하면서 기존에 문제 없던 부분에서 아래 에러가 발생함. 테스트 폰의 error 메시지를 보면 @babel/core 부분과 관련해서 발생한 에러임을 확인함. babel/core 관련된 라이브러리를 업데이트하여 해결할 수 있을 것 같았으나, 전혀 상관이 없었다. 최종 해결 방법은 맨 아래 참조 Maximum call stack size exceeded 에러가 발생한 파일에서 원인을 찾았다. 해당 파일의 라이브러리 중 @react-native-community/async-storage 을 사용하고 있었는데 지원이 종료되었고, @react-native-async-storage/async-storage 로 변경되었다. 해당 라이브러리를 설치 후 ..

728x90
반응형