본문 바로가기

반응형

React-Native

(3)
React Native State와 Props React 는 State와 Props라는 객체(?)를 사용해서 화면에 변화되는 값을 관리 합니다. State와 Props의 특징 1. Props 혹은 State에 변경이 감지될 때마다 render()가 수행된다. (이는 리액트의 최적화와도 관련있습니다.) 2. State에는 현재 컴포넌트의 화면을 그리는 것과 관련된 대다수의 값들을 담는다. 3. 데이터의 흐름은 상위 컴포넌트에서 하위 컴포넌트로 단방향이다. 4. Props에는 상위 컴포넌트에서 전달받은 값이 담겨있으며 변경 불가능하다. 5. Props 혹은 State는 비동기적(asynchronously)으로 업데이트 될 수 있다.
Tried to register two views with the same name RNCSafeAreaProvider 내가 만들고 있는 리액트 네이티브 앱에 갑자기 에러가 나타났다. Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider 청천병력같은 소식... 그와중에 빌드는 잘 됐으면서 화면에 띄우는 순간 문제가 발생하는 바람에 원인조차도 잘 몰랐다..;; 그래서 구글링을 열심히 해 본 결과.. https://github.com/th3rdwave/react-native-safe-area-context/issues/110 Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider · Issue #110 · th3rdwave..
React Native 0.63 환경 구축 및 시작하기 이 내용은 React Native 0.63 Docs 를 참고로 해석해서 만들어진 글입니다. Setting up the development environment 이 페이지는 React Native app을 처음으로 설치하고 빌드하기 위해 만들어졌습니다. If you are new to mobile development 새로운 모바일 환경을 개발할 때 the easiest way to get started is with Expo CLI. Expo is a set of tools built around React Native and, while it has many features, the most relevant feature for us right now is that it can get you writ..

반응형