-
[React-native] react-native-router-flux 에러Framework/React.js 2020. 7. 2. 14:03
react-native-router-flux 설치하게 되면 기본적으로 필요한 dependencies 입니다.
npm i react-native-router-flux react-native-gesture-handler react-native-reanimated react-native-screens
이 명령어로 전체를 설치하도록 합니다. 왜냐하면 하나라도 없을 경우 에러를 냅니다.
react-native-router-flux의 git 주소입니다.
https://github.com/aksonov/react-native-router-flux
aksonov/react-native-router-flux
The first declarative React Native router. Contribute to aksonov/react-native-router-flux development by creating an account on GitHub.
github.com
물론 git의 설명에서는 그런 말이 나와있지 않지만 단순히 이 패키지만 설치시 실행이 되지 않는 걸 알 수 있습니다.
제가 테스트한 환경에서는 그랬거든요. 그래서 전부 깔고 해보시는 걸 추천드립니다.
에러의 내용은 다음과 같습니다.
1. Unable to resolve "react-native-screens" from "node_modules\react-navigation-stack\lib\module\views\StackView\StackViewCard.js" Failed building JavaScript bundle 에러
>> 해결법 : npm i react-native-screens을 하시면 해결 됩니다.
(참고 : https://github.com/creativetimofficial/now-ui-react-native/issues/25)
2. null is not an object ( evaluating 'RNGestureHandlerModule.Direction') 에러
>> 해결법 : npm i react-native-gesture-handler 설치 후 cd ios && pod install
(참고 : https://github.com/software-mansion/react-native-gesture-handler/issues/494)
'Framework > React.js' 카테고리의 다른 글
[React.js] digital envelope routines::unsupported 이슈 해결 (0) 2022.02.24 [React-native] folly/gen/String.h file not found 오류 해결 (0) 2020.07.03 [Javascript] Date 객체의 기본함수 (0) 2020.06.21 [Javascript] 시간 계산, 날짜 계산 함수 (0) 2020.06.21 [React-native] 플레이스토어 업로드 버전 체크 (0) 2020.06.09