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

New Example: Expo Router with TypeScript #412

Closed karlhorky closed 1 year ago

karlhorky commented 1 year ago

Hi there 👋 First of all, thanks for Expo and these examples, super useful!

I just wanted to request a new example with:

The existing example with-router uses JavaScript.

Potentially related:

EvanBacon commented 1 year ago

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

karlhorky commented 1 year ago

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

Josehower commented 1 year ago

I created the PR https://github.com/expo/examples/pull/423

yash-bansod-2003 commented 10 months ago

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.

karlhorky commented 10 months ago

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

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

alaksandarjesus commented 10 months ago

typo on template

npx create-expo-app@latest --templete

should be

npx create-expo-app@latest --template