Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager.
"dependencies": {
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.2",
"react": "17.0.2",
"react-native": "0.67.4",
"react-native-safe-area-context": "^4.2.4",
"react-native-screens": "^3.13.1",
"react-native-track-player": "^2.1.2",
"react-native-webview": "^11.18.0"
},
react-native-webview 모듈을 설치 후 build 시에 다음과 같은 에러 메세지와 함께 실패했다. Invariant Violation: requireNativeComponent: "RNCWebView" was not found in the UIManager.
UI Manager에서 react-native-webview 컴포넌트를 못찾는다고 해서 모듈 link 문제일 것이라 생각했다.
react-native 모듈 버젼이 0.60. 이상은 autolinking을 지원한다고 돼있어 manual linking은 한 번도 안 해봤는데
다음 문서를 참고하여 webview manual linking을 진행했다
https://engineering.brigad.co/demystifying-react-native-modules-linking-964399ec731b
'IT 인프라, 개발 > React Native' 카테고리의 다른 글
[ReactNative]pod install error mac os (0) | 2022.05.27 |
---|---|
[React Native Track Player,RNTP]Troubleshooting (0) | 2022.05.27 |
[React Native] value for title cannot be cast from readablenativemap to string (0) | 2022.04.02 |
댓글