expo / router

[ARCHIVE]: Expo Router has moved to expo/expo -- The File-based router for universal React Native apps

Home Page:https://docs.expo.dev/routing/introduction/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS doesn't find certain routes (for instance '_sitemap')

jmatsushita opened this issue · comments

Which package manager are you using? (Yarn is recommended)

yarn

Summary

Some routes aren't found on iOS while they work on web and android.

For instance _sitemap doesn't work (either with a <Link> or a router.push().

Links also seem to not load on iOS when using shared routes.

Minimal reproducible example

Tested with expo@49.0.0-beta.1 and expo-router@2.0.0-rc.10

For instance, /message works:

app/
  _layout.js 
  (home)
    _layout.js
    home.js
    message.js

but on iOS this doesn't (but works on web and android)

app/
  _layout.js 
  (home)
    _layout.js
    home.js
  message
    index.js

and neither does this

app/
  _layout.js 
  (home)
    _layout.js
    home.js
  (message)
    message.js

Provide a repro, it's unclear what's inside the layout files, where the navigation event is firing from, etc.