What is the purpose of the FlatList component in React Native?
The FlatList component in React Native is used to render large lists efficiently. It renders only the items that are currently visible on the screen, reducing memory usage and improving performance. For example, you can use FlatList to display long lists of items such as contacts, messages, or products in your app.