obytes / react-native-template-obytes

📱 A template for your next React Native project: Expo, PNPM, TypeScript, TailwindCSS, Husky, EAS, GitHub Actions, Env Vars, expo-router, react-query, react-hook-form.
https://starter.obytes.com
MIT License
2.19k stars 321 forks source link

Unmatched Router Bug on build for ios/android but works fine on expo go app. #313

Closed MohammadHarisZia closed 4 months ago

MohammadHarisZia commented 5 months ago

Summary:

I added support for both expo go and native builds from your starter template but for some reason the expo router shows unmatched route on build but works fine on expo go app.

Steps to reproduce:

Sample repo https://github.com/MohammadHarisZia/expo_sample_project

Expected behavior:

Should route to (app) which is a tab layout file.

Additional notes:

Screenshot 2024-04-22 at 6 49 35 PM Screenshot 2024-04-22 at 6 50 12 PM

<img width="416" alt="Screenshot 2024-04-22 at 6 50 12 PM" src="https://github.com/expo/expo/assets/63912301/36b1318d-ef1b-40a0-8237-25654155fd8c">

FYI: I am using unstable settings in my root layout

export const unstable_settings = { initialRouteName: '(app)', };

image

Tasks

MohammadHarisZia commented 5 months ago

@ElenaBitire Could you please help me with this? It is really annoying and I can't figure out why this is happening

MohammadHarisZia commented 4 months ago

It seems to be fixed by updating expo sdk to 51