nandorojo / expo-next-react-navigation

⛴ Make Next.js and react-navigation play nicely together with an Expo/React Native Web app.
408 stars 32 forks source link

Will this create standard href for web use? #24

Closed shamoons closed 4 years ago

nandorojo commented 4 years ago

I don’t understand the question.

shamoons commented 4 years ago

I'm attempting to set up a next.js + expo project so that I can write once and run on web / android / iOS. So if I have a <Link>, will it have an href attribute?

nandorojo commented 4 years ago

Yes, it will create that for you under the hood.

On web, the Link component renders the Link from next/link (https://nextjs.org/docs/api-reference/next/link).

That component from Next passes the href prop down to its first child, which this library creates for you.

shamoons commented 4 years ago

Awesome - thank you

nandorojo commented 4 years ago

No problem! Feel free to star the library if you end up finding it useful :)