JSPM

@react-native/typescript-config

0.84.0-nightly-20251116-d52b9d2f8
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 658702
  • Score
    100M100P100Q180722F
  • License MIT

Default TypeScript configuration for React Native apps

Package Exports

  • @react-native/typescript-config
  • @react-native/typescript-config/strict

Readme

@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.

Strict TypeScript API

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

{
  "extends": "@react-native/typescript-config/strict",
  // ...
}

or alternatively add the customConditions yourself:

{
  "extends": "@react-native/typescript-config",
  "compilerOptions": {
    // ...
    "customConditions": ["react-native-strict-api", "react-native"]
  }
}