What happens when a component is unmounted in React Native?
When a component is unmounted in React Native, it is removed from the DOM and its memory is freed up. This occurs when the component is no longer needed or when its parent component is re-rendered without it.