Error Message
Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.
Solution
If you got the error even though you're not using ViewPropTypes.
In this case, you can try to comment the function out in 'node_modules>react-native>index.js' file.
ViewPropTypes를 사용하지도 않았는데 위와 같은 에러가 떴다면 'node_modules>react-native>index.js' 파일에서 아래와 같이 주석 처리 해보세요.
// get ViewPropTypes(): $FlowFixMe {
// invariant(
// false,
// 'ViewPropTypes has been removed from React Native. Migrate to ' +
// "ViewPropTypes exported from 'deprecated-react-native-prop-types'.",
// );
// },
LIST
'Computer Programming > React-Native' 카테고리의 다른 글
React-Native Error Case(firebase, responder.scrollResponderScrollTo) (0) | 2022.08.27 |
---|---|
React-Native Error Case(firebase, module 'idb') (0) | 2022.08.26 |
React-Native Error Case(firebase module) (0) | 2022.08.26 |
(React-Native) Project: 로그인 기능(부적절한 input 값 알려주기) (0) | 2022.08.25 |
(React-Native) Project: Animatable(애니메이션 효과 넣기) (0) | 2022.08.23 |