expo / examples

Example projects that demonstrate how to use Expo APIs and integrate Expo with other popular tools
2.21k stars 862 forks source link

Add with-router-typescript example #423

Open Josehower opened 1 year ago

Josehower commented 1 year ago

Add new with router typescript example based on suggestions https://github.com/expo/examples/issues/412#issuecomment-1451489760

DanHarman commented 1 year ago

Is there any point in this when npx create-expo-app -t offers a typescript with router option, that also has a tab bar and a few example screens?

mattwoodruff808 commented 1 year ago

I will say I would greatly appreciate this PR. I love expo-router, and have been having issues trying to implement TypeScript after spinning up npx create-expo-app@latest --example with-router. This would help me a ton!

AndresdoSantos commented 1 year ago

I already created the application and installed the TS even before starting to use expo-router, is there a way to type the routes?

karlhorky commented 1 year ago

is there a way to type the routes?

There is a discussion about typed props of a route here (originally an issue, but converted into a discussion):