728x90
반응형

전체 글 632

푸시 - 백그라운드 상태에서 알림 클릭시 데이터 가지고 오기

1) 백그라운드 자체에서 데이터를 처리 하고싶은 경우 index.js import messaging from '@react-native-firebase/messaging'; // Register background handler messaging().setBackgroundMessageHandler(async remoteMessage => { console.log('setBackgroundMessageHandler', remoteMessage); }); 2) 백그라운드에서 온 알림을 클릭후 이벤트 및 데이터를 처리 하고 싶은 경우 componentDidMount() { // 백그라운드에서 푸시가 왔을 경우- 헤드업 알림 클릭시 - 처리 하기 messaging().getInitialNotification(..

React Native 2020.11.26

Android NDK 빌드툴인 NDK-Build 와 CMake 정리

출처 : duzi077.tistory.com/194 Android NDK 빌드툴인 NDK-Build 와 CMake 정리 요약 안드로이드 스튜디오의 기본 빌드 툴은 CMake 안드로이드 스튜디오는 이미 사용 중인 기존 프로젝트가 너무 많아서 NDK-Build를 지원 만약 새 프로젝트를 만들 경우엔 CMake를 쓰는 것이 좋음 CM duzi077.tistory.com 요약 안드로이드 스튜디오의 기본 빌드 툴은 CMake 안드로이드 스튜디오는 이미 사용 중인 기존 프로젝트가 너무 많아서 NDK-Build를 지원 만약 새 프로젝트를 만들 경우엔 CMake를 쓰는 것이 좋음 CMake - Android, Linux, Windows, IOS 등 모든 타겟에서 빌드 가능 - 크로스 플랫폼을 사용한다면 CMake가 가..

리액트 네이티브 랜더링 속도를 늦추는 안좋은 습관

1. Have mercy on constructor ( 생성자에 너무 많은 연산들 ) - Prefer moving it to componentDidMount _ 연산에 관련된 것들은 componentDidMount 로 이동시켜서 사용하자. 2. Be careful with functional props ( props에 함수를 전달시 주의 ) class MyComponent extends Component { render() { return ( doSomething(id)}/> ); } } Reason: onPress contains an arrow function. So, every time render() of MyComponent is called — a new reference of onPress ..

개인 공부 2020.10.29
728x90
반응형