Component Life Cycle in React Native

  1. Mounting methods
  • constructor()
  • getDerivedStateFromProps()
  • render()
  • componentDidMount()
  • shouldComponentUpdate()
  • componentWillUpdate()
  • componentDidUpdate()
  • componentWillUnmount()

Mounting

  • constructor()
  • static getDerivedStateFromProps()
  • render()
  • componentDidMount()

Updating

  • static getDerivedStateFromProps()
  • shouldComponentUpdate()
  • render()
  • getSnapshotBeforeUpdate()
  • componentDidUpdate()

UnMounting

  • componentWillUnmount()

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Title Case a String in JavaScript | Pictorial 📸

JavaScript: Class Constructor

Server Side Rendering React App with Express

The tale of Cheerz technical stack

10 Real Truths of React.js

Basic Dualities in Javascript Array Methods

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nushwa Javed

Nushwa Javed

More from Medium

A Robinhood Clone with React Native | Chapter 1: The Navigation

How we are using Sentry for mobile apps

Paytabs Payment Gateway Integration in React Native

Expo + react-native-firebase