Back to Facebook Developer Docs

@react-native/typescript-config

packages/typescript-config/README.md

0.87.01.1 KB
Original Source

@react-native/typescript-config

This package provides the default tsconfig.json used by newly built React Native apps.

This template is customized for specific versions of React Native, and should be updated in sync with the rest of your app.

Opting out of the Strict TypeScript API (default in 0.87)

To opt out of the new Strict TypeScript API you can extend from @react-native/typescript-config/strict

If your app still needs access to deep 'react-native/Libraries/*' imports (deprecated in 0.80), you can opt out via customConditions in your tsconfig.json:

jsonc
{
  "extends": "@react-native/typescript-config",
  "compilerOptions": {
    // ...
    "customConditions": ["react-native", "react-native-legacy-deep-imports"]
  }
}