@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"]
}
}