Galaxies-dev / wordle-clone-react-native

9 stars 3 forks source link

Redirected to "Unmatched Route" Screen #2

Open NR3101 opened 4 days ago

NR3101 commented 4 days ago

Redirected to "Unmatched Route" Screen when we use OAuth(like Google, GitHub) providers for few seconds and then the app redirects to the home or back page. Could not resolve this any ideas how to solve this?

kagantemizkan commented 3 days ago

create oauth-native-callback.tsx in your app folder and paste this code:

import { Redirect } from "expo-router";

export default function Page() {
  return <Redirect href="/" />;
}

also delete router.back() in your onSelectAuth function inside login page.

NR3101 commented 3 days ago

Thanks for the solution. It is working for me. There is a slight flash and then we are redirected to home. One more issue : My build is working when I run it with "npx expo run:android" but after building it with eas and running the apk on my physical device it only flashes the splash screen for a slight moment and doesn't go any further and sometimes for a fresh development build on my device using "npx expo run:android" its shows error : "[must be called from main thread]" and then automatically restarts well.

kagantemizkan commented 3 days ago

Its maybe the error that i mentioned in this issue.