Solve Problem 134

react-native-push-notification: Android에서 custom sound가 안울림 / android userInfo 오류

react-native-push-notification: Android에서 custom sound가 안울림 / android userInfo 오류1. channel이 2개가 있는데 앱 내 설정된 소리로 있는 그 채널말고 다른 채널이 하나 더 있다. 그게 자꾸 울리는 것 같다...... 2. library 3.4.0 -> 3.5.2 로 업그레이드 3. 경로 다시 설정.    .mp3 없이. 그래도 안됨https://github.com/zo0r/react-native-push-notification/issues/1432 Android - No sound on notifications? · Issue #1432 · zo0r/react-native-push-notificationBug Using {playSou..

apk 설치하면 알 수 없는 크래시

- debug에선 괜찮은데... release는 !!!!! 1. https://stackoverflow.com/questions/54634072/react-native-signed-release-apk-keeps-crashing-in-device React-native (Signed) release apk keeps crashing in deviceI created a signed react-native apk after following all the documents from the official react native documentation ( i.e. https://facebook.github.io/react-native/docs/signed-apk-android ). After cr...st..

KeyboardAvoidingView를 쓰지 않았는데도 키보드가 레이아웃에 영향을 줄 때

- 원인: 안드로이드는 기본 설정이 adjustResize라 그렇다. adjustNothing으로 바꿔주면 된다. 아래 블로그를 참고하자! https://brunch.co.kr/@hopeless/5 [Android] 키보드가 레이아웃에 영향 안 주게하기레이아웃을 짜다 보면 소프트 키보드가 레이아웃을 덮어 버려야 하는 경우도 있고, 밀고 올라와야 되는 경우도 있습니다. 아래 그림은 소프트 키보드가 광고영역을 밀고 올라가는 경우입니다. �brunch.co.kr

안드로이드 에뮬레이터 오프라인일 때 / Emulator Offline

- 문제: adb devices를 해보면 안드로이드가 오프라인 상태이다. 온라인 상태로 돌리고 싶을때- 해결법: 안드로이드 스튜디오 실행 - Configure - AVD manager - 실행하려는 에뮬레이터의 Actions 탭 - Wipe Data 클릭데이터를 싹 밀고 다시 실행하면 된다!   출처https://athilog.github.io/react-native/%EA%B0%9C%EB%B0%9C%ED%99%98%EA%B2%BD%EA%B5%AC%EC%84%B1/ 개발환경 구성 - 아띠의 개발블로그아띠의 개발일지athilog.github.io

[React Native] react-navigation 화면이 포커스되었을 때를 감지하기 & 특정 화면에서 돌아왔을 때 api 호출하기

1. To DoA screen에서 B screen으로 navigate한 후 다시 A로 goBack했을 때 goBack한 순간 A screen에서 api 호출을 다시 해야한다.(C screen에서 A screen으로 오면 아무것도 하지 않는다) 2. How To2-1. react navigation 활용 (해결책x)https://reactnavigation.org/docs/function-after-focusing-screen/ React NavigationIn this guide we will call a function or render something on screen focusing. This is useful for making additional API calls when a user revi..

앱 종료 시 푸시 알림 클릭했을 때 초기 렌더링이 2번 발생하는 문제

문제초기 렌더링이 2번 되는 문제 발생https://github.com/erikras/react-redux-universal-hot-example/issues/429 componentDidMount called twice for initial load · Issue #429 · erikras/react-redux-universal-hot-exampleHey, the method componentDidMount is called twice on the client, when initially accessing any route e.g. localhost:3000/login (I see this in the browser console logs when adding something like cons...g..

[React Native] react native android apk 뽑기

1. apk 뽑는 블로그 그대로 따라했음https://bomjjack.github.io/programming/2018/01/06/rn-android-app-release/ React Native 릴리즈 빌드(안드로이드 편)안드로이드편.bomjjack.github.io  2. apk 뽑기는 성공했는데 api url이 https가 아닌 http 여서 통신이 안됐음.안드로이드 release 버전에서는 http 통신이 기본적으로 안됨. 그래서 설정을 해줘야 함! 해결책 -> github.com/facebook/react-native/issues/24408#issuecomment-537081276 Fetch not working for HTTP requests on Android · Issue #24408 · f..

[React Native] react-native-svg ProgressCircle로 시계 나타내는 법 / startAngle, endAngle

1. 라이브러리 https://github.com/JesperLekland/react-native-svg-charts JesperLekland/react-native-svg-charts 📈 One library to rule all charts for React Native 📊 - JesperLekland/react-native-svg-charts github.com 2. ProgressCircle Usage - 10시~3시, 6시~12시 같은 일정이 있으면 그 시간만큼이 채워진 원형 그래프를 그리고 싶었다. - 딱 적합한 것이 ProgressCircle이었다. - 먼저 문서 그대로 사용해보면 이렇게 보인다. * 코드 * 결과 - 특정 시간대를 이 원형그래프로 나타내려면 어떻게 해야할까? - startA..

[React Native] AppState / detect foreground, background

0. 소개AppState를 이용하면 앱이 background였다가 foreground 상태로 왔는지, 그 반대인지를 알 수 있다.  1. 문서https://reactnative.dev/docs/appstate.html React Native · A framework for building native apps using ReactA framework for building native apps using Reactreactnative.dev 2. Usage앱이 포그라운드 -> 백그라운드 로 가는 순간appState는 active -> inactive -> background로 바뀐다. 이 과정에서 앱이 백그라운드 상태가 되면 setAppState가 매끄럽게 이어져서 appState는 background여..

@react-navigation/routers/src/index.tsx: Unexpected token (9:12) 해결법

https://github.com/react-navigation/react-navigation/issues/8060 @react-navigation/routers/src/index.tsx: Unexpected token (9:12) · Issue #8060 · react-navigation/react-navigationsoftware version iOS or Android @react-navigation/native 5 react-native expo node npm or yarngithub.com나와 같은 오류를 접한 사람이 있었다.  https://github.com/react-navigation/react-navigation/issues/7981#issuecomment-611377210 Build..

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