Redirect to another page when this page is focused.
This component uses useFocusEffect
to only run when the route it's rendered inside of is active. Once active, it will redirect immediately to a new route.
Terminal
interface RedirectProps {
href: string
}
Edit this page on GitHub.