본문 바로가기

프로그래밍119

[React Native] android react-native-reanimated 에러 정상 작동하다가도 써드파티 라이브러리의 갑작스러운 에러는 이제 익숙하다(예견된 에러일지도...) 아래는 처음 프로젝트 생성시 추가되어 있던 dependencies의 react-native-reanimated 에러이다 attempt to invoke interface method boolean com.swmansion.reanimated.layoutReanimation.NativeMethodsHolder.isLayoutAnimationEnabled on a null object reference 일단 package.json의 상태를 확인해보자 react 17.0.2 react-native 0.65.1 react-native-reanimated 2.1.0 이렇게였고 github을 확인해보니 https://g.. 2022. 2. 1.
[React Native] 명령어로 실행시, iOS Simulator 설정 간단하지만 몰라도 Xcode에서 직접 실행해도 된다 하지만 우리는 명령어로 실행시키고 싶기 때문에, 우선 Simulator의 종류를 찾아보자. Xcode를 실행 후 Window > Devices and Simulators를 선택하면 새로운 창이 뜨고 Simulators 탭을 클릭하면 여러 종류가 있는 것을 확인할 수 있다 명령어로 실행시키고 싶은 Simulator를 마음속으로 정한 후 package.json의 기본 설정에 보면 scripts에 ios부분이 있다 "scripts": { "android": "react-native run-android", "ios": "react-native run-ios --simulator \"iPhone 12\"", "start": "react-native start".. 2022. 2. 1.
[MacOS] M1 맥북의 Arm64 관련 설정에 대하여 M1 맥북에서 아무 생각 없이, 아무 Java를 사용한다면 프로그램 빌드의 속도가 매우 답답하다 맥에서 활성 상태 보기를 실행했을 때, 아키텍처(Architecture) 부분에서 Java의 실행상태를 확인해보면 Intel일 확률이 높다 이것을 Apple로 바꿔줘야 하는데, Azul Zulu Arm64 Open JDK 같이 Arm64가 들어있는 JDK를 설치하고나서 설치한 Java 버전을 사용하면 아키텍처 부분이 Apple로 바뀐 것을 확인할 수 있으며 프로그램 빌드의 속도가 체감될 정도로 빨라진 것을 느낄 수 있을 것이다 Intellij나 Android도 Arm64와 관련된 프로그램을 다운받아 설치해야 아키텍처 부분이 Apple이 될 것이다 Intellij + Java나 Android + Java가 둘 .. 2021. 8. 22.
[Android] TabLayout 각 탭의 이벤트 막기 TabLayout 사용 시, 각 탭의 클릭 이벤트를 막아야 할 때가 있다 아래의 코드는 모든 탭을 막는 코드이며, 필요에 따라 조건문을 처리해주면 된다 TabLayoutMediator(tabLayout, viewPager) { tab, position -> tab.view.isClickable = false }.attach() 끝. 2021. 8. 22.
[Android] 업로드 키를 분실했거나 도난당했나요? https://support.google.com/googleplay/android-developer/answer/9842756?hl=ko&visit_id=637651608393102378-2301502517&rd=1#reset Play 앱 서명 사용하기 - Play Console 고객센터 도움이 되었나요? 어떻게 하면 개선할 수 있을까요? 예아니요 support.google.com Play console 고객센터에서 업로드 키를 분실했거나 도난당했을 때 재설정을 요청할 수 있는 방법을 안내해준다 1. 새 키를 만들고 https://support.google.com/googleplay/android-developer/answer/9842756#create Play 앱 서명 사용하기 - Play Consol.. 2021. 8. 22.