What is the purpose of the componentDidUpdate method in React Native?
The componentDidUpdate method in React Native is called after the component's props or state have changed and the component has been re-rendered. It is often used to perform actions such as fetching updated data or updating the DOM in response to state changes.