
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@tsconfig/react-native
Advanced tools
Add the package to your "devDependencies":
npm install --save-dev @tsconfig/react-native
yarn add --dev @tsconfig/react-native
Add to your tsconfig.json:
"extends": "@tsconfig/react-native/tsconfig.json"
The tsconfig.json:
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "React Native",
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"lib": [
"es2017"
],
"allowJs": true,
"jsx": "react-native",
"noEmit": true,
"isolatedModules": true,
"strict": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"skipLibCheck": false
},
"exclude": [
"node_modules",
"babel.config.js",
"metro.config.js",
"jest.config.js"
]
}
You can find the code here.
react-native-typescript-transformer is a custom transformer for Metro, the React Native bundler, that allows you to use TypeScript with React Native. It provides a way to integrate TypeScript compilation into the React Native build process, but it requires additional setup compared to the out-of-the-box configuration provided by @tsconfig/react-native.
ts-jest is a Jest transformer that enables you to use TypeScript with Jest for testing. While it is not a direct replacement for @tsconfig/react-native, it complements it by providing TypeScript support in the testing environment, ensuring type safety in tests for React Native projects.
FAQs
A base TSConfig for working with React Native.
The npm package @tsconfig/react-native receives a total of 205,279 weekly downloads. As such, @tsconfig/react-native popularity was classified as popular.
We found that @tsconfig/react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.