Files
2019-05-19 15:15:03 +02:00
..
2019-05-19 15:11:52 +02:00
2019-05-19 15:11:40 +02:00
2019-05-19 15:12:00 +02:00
2019-05-19 15:11:57 +02:00
2019-05-19 15:11:55 +02:00
2019-05-19 15:11:47 +02:00
2019-05-19 15:11:45 +02:00
2019-05-19 15:14:56 +02:00
2019-05-19 15:14:59 +02:00
2019-05-19 15:15:03 +02:00

Using Expo for web with TypeScript

From the TypeScript tutorial

  • Install the TS packages yarn add -D typescript@^3.3.0 @types/expo@^32.0.0 @types/react-native@^0.57.0
  • Add tsconfig.json:
    {
      "compilerOptions": {
        "allowJs": false,
        "allowSyntheticDefaultImports": true,
        "noFallthroughCasesInSwitch": true,
        "experimentalDecorators": true,
        "esModuleInterop": true,
        "isolatedModules": true,
        "jsx": "react-native",
        "lib": ["es6"],
        "moduleResolution": "node",
        "noEmit": true,
        "strict": true,
        "target": "esnext"
      },
      "exclude": ["node_modules"]
    }