UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

18 lines (17 loc) 416 B
import { useRouter } from "../hooks.native.js"; import { useFocusEffect } from "../useFocusEffect.native.js"; function Redirect(param) { var { href } = param, router = useRouter(); return useFocusEffect(function () { try { router.replace(href); } catch (error) { console.error(error); } }, [href]), null; } export { Redirect }; //# sourceMappingURL=Redirect.native.js.map