Files
react-native-paper/package.json
Satyajit Sahoo 0faee986a5 fix: add back the peer dependency on vector icons
The peerDependency on vector icons was removed in #303 to support optional usage of vector icons. This was mostly due to people using react-navigation wanting to remove the dependency. However, React Navigation moved it to a separate package: https://github.com/react-navigation/react-navigation-material-bottom-tab-navigator, so the case no longer holds.

Removing the peerDependency also had the effect of removing support for vector-icons on our build on Snack since Snackager relies on peerDependencies to figure out what to install before bundling.

Adding it back to the peerDependency also means that people who use expo will get the warning since they don't need to install it. However they already get this error from any package that uses react-native-vector-icons and there's no good way to handle it.

Another effect is that people who use babe-plugin-optional-require to exclude vector icons will still get the warning for peer dependency. They could, however, install the package and use the 'blacklist' option to exclude it from the bundle.
2018-05-05 14:53:36 +02:00

77 lines
1.9 KiB
JSON

{
"name": "react-native-paper",
"version": "1.5.0",
"description": "Material design for React Native",
"main": "src/index.js",
"files": [
"src/",
"dist/",
"babel.js"
],
"repository": {
"type": "git",
"url": "https://github.com/callstack/react-native-paper.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/callstack/react-native-paper/issues"
},
"homepage": "https://callstack.github.io/react-native-paper",
"keywords": [
"android",
"ios",
"react native",
"component library",
"ui kit",
"material design",
"bootstrap"
],
"scripts": {
"commitmsg": "node ./scripts/validate-commit-message.js $GIT_PARAMS",
"precommit": "yarn lint && yarn flow && yarn test",
"flow": "flow",
"lint": "eslint .",
"test": "jest",
"prepare": "node ./scripts/generate-mappings",
"bootstrap": "yarn && yarn --cwd example && yarn --cwd docs"
},
"dependencies": {
"color": "^2.0.1",
"create-react-context": "^0.2.2",
"deepmerge": "^2.1.0",
"hoist-non-react-statics": "^2.5.0",
"react-lifecycles-compat": "^3.0.2"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-tester": "^5.0.0",
"babel-preset-react-native": "^4.0.0",
"eslint": "^4.19.1",
"eslint-config-callstack-io": "^1.1.1",
"eslint-plugin-prettier": "^2.6.0",
"eslint-plugin-react-native": "^3.2.1",
"flow-bin": "~0.65.0",
"husky": "^0.14.3",
"jest": "^22.4.3",
"prettier": "^1.12.1",
"react": "16.3.0-alpha.1",
"react-dom": "16.3.0-alpha.1",
"react-native": "~0.54.4",
"react-native-vector-icons": "~4.6.0",
"react-test-renderer": "16.3.0-alpha.1"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
"react-native-vector-icons": "*"
},
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
"<rootDir>/example/node_modules"
]
},
"sideEffects": false
}