What is the purpose of the useEffect hook in React Native?
The useEffect hook in React Native is used to perform side effects in functional components. It can be used to fetch data, set up subscriptions, and manually change the DOM in React components.