expo/examples

New Example: Expo Router with TypeScript

karlhorky opened this issue ยท 6 comments

Hi there ๐Ÿ‘‹ First of all, thanks for Expo and these examples, super useful!

I just wanted to request a new example with:

  • Expo Router
  • TypeScript (as fully-typed as possible)

The existing example with-router uses JavaScript.

Potentially related:

Simply run touch tsconfig.json && npx expo in the with-router template and it's fully TypeScript.

Ok, I will submit a PR for a new example with-router-typescript then, so that these extra steps are not necessary.

I created the PR #423

Simply run

npx create-expo-app@latest --templete

and then you get some options like

Blank, Blank (Typescript), Navigation (Typescript), Blank (Bare)

you need to choose Navigation (Typescript) for expo router with typescript.

@yash-bansod-2003 do these options include Expo Router too?

I think when we tested last time, they did not include Expo Router...

typo on template

npx create-expo-app@latest --templete

should be

npx create-expo-app@latest --template