안녕하세요

프로그램 과정에서 막혔던 문제들에 대한 해결책 정리


페이지 목록

2022년 12월 14일 수요일

react-native link가 동작을 안해요

 0.6.0 부터 사라졌습니다.


from React-Native 0.60.0 linking packages using react-native link has become redundant

2022년 12월 12일 월요일

React vs React Native

 출처: React vs React Native

React 는 Library 이다. 

React 는 Web개발 용이다.


React Native는 Framework이다.

React Native는 Cross-Platform 개발(앱개발) 용으로 좋다.

Picker has been removed from React Native

 Picker는 React Native에서 지워졌다고 한다.

Picker를 사용하기 위해서는 다른 방법을 찾아야 한다.

npm i package에서 i의 의미는?

 install 약자이다. install 치는 거 보다 I 치는게 훨씬 좋다.

rncwebview was not found in the uimanager ios

 출처: https://stackoverflow.com/questions/61832232/invariant-violation-requirenativecomponent-rncwebview-was-not-found-in-the-u

  1. npm i react-native-webview
  2. cd ios
  3. pod install
  4. (npx) react-native run-ios

mac 에서 ctrl+z로 되돌리기에서 다시 되돌리기

 다시 되돌릴려면 ctrl+y 가 아니라 ctrl+shift+d이다.

헤깔리는군.

React Native Tutorial 중 Router 예제 중 Warning - 오래된 예제로 보임

 출처:https://www.tutorialspoint.com/react_native/react_native_images.htm

Router 예제는 에러를 처리하고 나니 아래 warning이 뜬다.

Deprecation in 'createStackNavigator': 'transitionConfig' is removed in favor of the new animation APIs


 처리하려면 말 그대로 transitionConfig 를 최신으로 업데이트 해야 하는데 tutorial안에서는 해당 code가 안 보인다. 내가 못 보는 것일 가능성이 많긴합니다만

 그래서 일단은 넘어가고 Router보다 Navigation을 많이 사용한다고 하니 다음에 확인 해 보고 최대한 최신 버전을 사용하도록 해봐야겠습니다.