What is the purpose of the componentWillMount method in React Native?
The componentWillMount method in React Native is called just before the component is mounted to the DOM. It is often used to perform setup tasks such as initializing state or subscribing to external events.