nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 181 forks source link

Support react-navigation on web platform #127

Closed clayrisser closed 2 years ago

clayrisser commented 2 years ago

I am trying to use solito in expo web. It seems that it is trying to use the nextjs routing logic, but it should be using the react-navigation logic when using expo on web.

nandorojo commented 2 years ago

Solito's purpose is to tie this altogether with Next.js. If you aren't using Next.js, you won't get value from Solito. You can just use React Navigation directly across both Web and Native if you're using normal Expo Web.

nandorojo commented 2 years ago

For reference, you can use the Link, useLinkTo() from React Navigation directly if you're maintaining consistency with URLs.