Sitelet https://github.com/react/react-native/tree/main/packages/typescript-config
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

@react-native/typescript-config

npm npm downloads

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:

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