Skip to content

Instantly share code, notes, and snippets.

@cetinozgur
Created August 25, 2022 12:10
Show Gist options
  • Save cetinozgur/3cab0b4010c97b0dac167129aed5b6e8 to your computer and use it in GitHub Desktop.
Save cetinozgur/3cab0b4010c97b0dac167129aed5b6e8 to your computer and use it in GitHub Desktop.
Project setup for react-native & typescript with expo.
{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react-native",
"lib": ["es2017"],
"moduleResolution": "node",
"noEmit": true,
"strict": true,
"target": "esnext"
},
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js"
]
}

Setup

  1. Initialize project with:
npx create-expo-app -t expo-template-blank-typescript
  1. Add .tsconfig file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment