mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-22 16:32:45 +08:00
The `use-subscription` package has a peer dep on latest React. This is problematic when using npm due to it's peer dependency algorithm which installs multiple versions of React when using an older version of React (Native). This means that we'll need to use an ancient version of `use-subscription` to support older React versions with npm and make sure to never update it, or test with every version. It's much lower maintenance to incporporate the same update in render logic that `use-subscription` has and not deal with dependencies. So this commit removes the `use-subscription` dependency. See https://github.com/react-navigation/react-navigation/issues/9021#issuecomment-721679760 for more context.
72 lines
1.6 KiB
JSON
72 lines
1.6 KiB
JSON
{
|
|
"name": "@react-navigation/core",
|
|
"description": "Core utilities for building navigators",
|
|
"version": "5.13.4",
|
|
"keywords": [
|
|
"react",
|
|
"react-native",
|
|
"react-navigation"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/react-navigation/react-navigation.git",
|
|
"directory": "packages/core"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/react-navigation/react-navigation/issues"
|
|
},
|
|
"homepage": "https://reactnavigation.org",
|
|
"main": "lib/commonjs/index.js",
|
|
"react-native": "src/index.tsx",
|
|
"source": "src/index.tsx",
|
|
"module": "lib/module/index.js",
|
|
"types": "lib/typescript/src/index.d.ts",
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"!**/__tests__"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"prepare": "bob build",
|
|
"clean": "del lib"
|
|
},
|
|
"dependencies": {
|
|
"@react-navigation/routers": "^5.5.1",
|
|
"escape-string-regexp": "^4.0.0",
|
|
"nanoid": "^3.1.15",
|
|
"query-string": "^6.13.6",
|
|
"react-is": "^16.13.0"
|
|
},
|
|
"devDependencies": {
|
|
"@react-native-community/bob": "^0.16.2",
|
|
"@testing-library/react-native": "^7.1.0",
|
|
"@types/react": "^16.9.53",
|
|
"@types/react-is": "^16.7.1",
|
|
"del-cli": "^3.0.1",
|
|
"react": "~16.13.1",
|
|
"react-test-renderer": "~16.13.1",
|
|
"typescript": "^4.0.3"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*"
|
|
},
|
|
"@react-native-community/bob": {
|
|
"source": "src",
|
|
"output": "lib",
|
|
"targets": [
|
|
"commonjs",
|
|
"module",
|
|
[
|
|
"typescript",
|
|
{
|
|
"project": "tsconfig.build.json"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|