mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
dbf8e3f5ba
Summary: Now that RN is providing TS type information, many of those .d.ts files depend on types from react. In modern packagemanagers (Ex: pnpm) types/react will not be available to RN since it does not declare it as a dependency. I also noticed that the types for react-native-popup-menu-android appear to be pointing to the wrong location. Add types/react as a peerDependency on the packages that have .d.ts files that import from React. Add types/react to peerDependencyMeta with optional:true to prevent users not using TS from requiring types/react. ## Changelog: [GENERAL] [ADDED] Added types/react as an optional peerDependency Pull Request resolved: https://github.com/facebook/react-native/pull/43509 Reviewed By: cortinico Differential Revision: D55225940 Pulled By: NickGerleman fbshipit-source-id: 4cbab071928cb925baec45f55461559acc9a54e6
48 lines
955 B
JSON
48 lines
955 B
JSON
{
|
|
"name": "@react-native/popup-menu-android",
|
|
"version": "0.75.0-main",
|
|
"description": "PopupMenu for the Android platform",
|
|
"main": "index.js",
|
|
"files": [
|
|
"js",
|
|
"android",
|
|
"!android/build",
|
|
"!**/__tests__",
|
|
"!**/__fixtures__",
|
|
"!**/__mocks__"
|
|
],
|
|
"keywords": [
|
|
"react-native",
|
|
"android"
|
|
],
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@react-native/codegen": "0.75.0-main"
|
|
},
|
|
"peerDependencies": {
|
|
"@types/react": "^18.2.6",
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@types/react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"nullthrows": "^1.1.1"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "ReactPopupMenuAndroidSpecs",
|
|
"type": "components",
|
|
"jsSrcsDir": "js",
|
|
"outputDir": {
|
|
"android": "android"
|
|
},
|
|
"includesGeneratedCode": true,
|
|
"android": {
|
|
"javaPackageName": "com.facebook.react.viewmanagers"
|
|
}
|
|
}
|
|
}
|