What is the purpose of the Modal component in React Native?
The Modal component in React Native is used to present content on top of other content in a modal overlay. It provides a way to display temporary views or dialogs that require user interaction. For example, you can use Modal to show a confirmation dialog, a login screen, or a photo viewer that overlays the main content.