mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50909 Enables and maps the `types_generated/` directory for `react-native` and `react-native/virtualized-lists` — exposing the new Strict TypeScript API entry points to React Native. **New `"exports"` conditions** - `"react-native-strict-api"` — The Strict TypeScript API opt in, exposing the `index.d.ts` entry point only. - `"react-native-strict-api-UNSAFE-ALLOW-SUBPATHS"` — Opts into the new from-source generated types, but allows accessing subpaths (unsafe). - We intend for this unsafe condition to be an escape hatch for Frameworks only (i.e. Expo). Note: In the case of `virtualized-lists`, we simply use the `"types"` condition — since this package did not expose any TypeScript API previously. NOTE: Should we need to roll back JS Stable API phase 1, **this is the single diff to revert**. Changelog: [General][Added] - Configure the "react-native-strict-api" opt in for our next-gen TypeScript API Reviewed By: cipolleschi Differential Revision: D71969602 fbshipit-source-id: 291182cc826db8b33f21fc79698e6096876d17ef
63 lines
1.3 KiB
JSON
63 lines
1.3 KiB
JSON
{
|
|
"name": "@react-native/virtualized-lists",
|
|
"version": "0.80.0-main",
|
|
"description": "Virtualized lists for React Native.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/facebook/react-native.git",
|
|
"directory": "packages/virtualized-lists"
|
|
},
|
|
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/virtualized-lists#readme",
|
|
"keywords": [
|
|
"lists",
|
|
"virtualized-lists",
|
|
"section-lists",
|
|
"react-native"
|
|
],
|
|
"bugs": "https://github.com/facebook/react-native/issues",
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./types_generated/index.d.ts",
|
|
"default": "./index.js"
|
|
},
|
|
"./*": {
|
|
"types": null,
|
|
"default": "./*.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts",
|
|
"Lists",
|
|
"README.md",
|
|
"types_generated",
|
|
"Utilities",
|
|
"!**/__docs__/**",
|
|
"!**/__fixtures__/**",
|
|
"!**/__mocks__/**",
|
|
"!**/__tests__/**"
|
|
],
|
|
"dependencies": {
|
|
"invariant": "^2.2.4",
|
|
"nullthrows": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"react-test-renderer": "19.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@types/react": "^19.0.0",
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@types/react": {
|
|
"optional": true
|
|
}
|
|
}
|
|
}
|