[react-native] 리액트 네이티브 생명주기 메서드 (Life Cycle, method, android, ios, cross platform)


[react-native] 리액트 네이티브 생명주기 메서드 (Life Cycle, method, android, ios, cross platform)

※리액트 네이티브에만 있는 내용이 아닌 React.js 공식 문서를 따릅니다. 리액트 생명주기 메서드ㆍ생성 : 마운팅이라고 함, 컴포넌트가 생성될 때 일련의 생명주기 메서드들이 호출되기 시작getDerivedStateFromProps(), constructor(), render(), componentDidMount() ...ㆍ갱신 : 컴포넌트가 갱신될 때 메서드들이 호출되기 시작(setState 나 새로운 props 가 전달될 때 이루어짐)getDerivedStateFromProps()(props 변경시), shouldComponentUpdate(), render(), getSnapshotBeforeUpdate(), componentDidUpdate()ㆍ언마운팅 : 생성과 반대, 컴포넌트가 파기될 때 생명주기 메서드가 시작componentWillUnmount() static getDerivedStateF..........



원문링크 : [react-native] 리액트 네이티브 생명주기 메서드 (Life Cycle, method, android, ios, cross platform)