Reputation: 101
I`m trying to initiate expo bare workflow with typescirpt.
But after I type "expo init [project name]" in command window,
I cannot find minimal(typescirpt) option.
? Choose a template: » - Use arrow-keys. Return to submit.
----- Managed workflow -----
blank a minimal app as clean as an empty canvas
blank (TypeScript) same as blank but with TypeScript configuration
tabs (TypeScript) several example screens and tabs using react-navigation and TypeScript
----- Bare workflow -----
> minimal bare and minimal, just the essentials to get you started
Dose anyone know solution?
Upvotes: 10
Views: 8382
Reputation: 798
Initialize the project with npx create-expo-app@latest
or npx create-expo-app@latest --template blank-typescript
Use the template with one command npx create-expo-app -t expo-ts
.
For more info please read the Starting React Native Project in 2025 article.
npx create-expo-app
command.tsconfig.json
in your project root with touch tsconfig.json
.App.js
to App.tsx
with mv App.js App.tsx
.yarn start
or npm run start
. It will prompt you to install the required dependencies (typescript, @types/react, @types/react-native), and automatically configure your tsconfig.json
.npx expo eject
command.For more info see the docs on Expo Typescript support.
Initialize the project with npx react-native init MyApp --template react-native-template-typescript
command.
For more info see the docs on React Native Typescript support.
Use the template with one command npx create-expo-app -t expo-ts
.
For more info please read Starting React Native Project in 2024 article.
expo init
command and choose minimal
as a template. Or use this command: expo init --template bare-minimum --name <your-app-name>
.tsconfig.json
in your project root: touch tsconfig.json
.App.js
to App.tsx
: mv App.js App.tsx
.expo start
. It will prompt you to install the required dependencies (typescript, @types/react, @types/react-native), and automatically configure your tsconfig.json
.For more info see the docs on Expo Typescript support.
Use the template with one command expo init --template @vladimir-vovk/expo-bare-typescript
.
For more info please read Starting React Native Project in 2022 article.
!! Unfortunately, expo-template-bare-typescript
package is outdated. It will install Expo 41.
Upvotes: 22
Reputation: 485
+ 4.62.0: there is no longer the option to create a Bare Workflow project with Typescript already configured.
So:
expo init nome-do-seu-app
Bare Workflow -> Minimal
tsconfig.json
in your project rootexpo start
. It will prompt you to install the required
dependencies (typescript, @types/react, @types/react-native), and
automatically configure your tsconfig.json."strict": true
Finish 🥳
Now your project Bare Workflow is with Typescript configured!
Upvotes: 5
Reputation: 29
Im with this issue to, but you can initiate your project by running
expo init --template expo-template-bare-typescript --name appname
Upvotes: 2