expo에서 react-native debugger 사용하기 (redux 디버깅)
2267 단어 reactnativeexpo
개시하다
expo를 사용하여react-native를 개발할 때 디버깅하는 방법은react-native debugger가 있습니다.실제 기기로 동작을 확인할 때의 디버깅 설정이 좀 번거롭기 때문에 총괄해 보겠습니다.주로 레드ux 디버깅입니다.
어플리케이션 설치
react-native debugger 응용 프로그램여기서부터.을 먼저 설치합니다.
node_modules 편집
그다음에 노드.modules/react-native/Libraries/Core/Devtools/setupDevtools.js를 열어 주세요.
52 행의 host 섹션을 편집합니다.Your IP의 경우 현재 연결된 IP 주소를 입력합니다.Mac의 IP 주소는 시스템 환경 설정 → 네트워크 → 상황의 "IP 주소 설정 hogehoge"이다어디?편집후↓
App.js 편집
App.제이스를 이렇게 만든 느낌.
요점const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
네.처음에는 이게 없어서 진행이 잘 안 됐어요.
여기서 끝내도록 설정합니다.
절차.
닫기
react-native debugger 응용 프로그램여기서부터.을 먼저 설치합니다.
node_modules 편집
그다음에 노드.modules/react-native/Libraries/Core/Devtools/setupDevtools.js를 열어 주세요.
52 행의 host 섹션을 편집합니다.Your IP의 경우 현재 연결된 IP 주소를 입력합니다.Mac의 IP 주소는 시스템 환경 설정 → 네트워크 → 상황의 "IP 주소 설정 hogehoge"이다어디?편집후↓
App.js 편집
App.제이스를 이렇게 만든 느낌.
요점const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
네.처음에는 이게 없어서 진행이 잘 안 됐어요.
여기서 끝내도록 설정합니다.
절차.
닫기
App.제이스를 이렇게 만든 느낌.
요점
const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
네.처음에는 이게 없어서 진행이 잘 안 됐어요.여기서 끝내도록 설정합니다.
절차.
닫기
http://localhost:<port>/debugger-ui
REACT_DEBUGGER="unset ELECTRON_RUN_AS_NODE && open -g 'rndebugger://set-debugger-loc?port=19001' ||" npm start
에서 프로젝트를 시작하십시오.참고
Reference
이 문제에 관하여(expo에서 react-native debugger 사용하기 (redux 디버깅)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/kiririri/items/2bff1f9c1fb8e3142d1f텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)