mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
# Summary Add a newly introduced field `ios.componentProvider` to the `codegen` configuration to create an association map between JS components and their native implementations. When this field is defined, it is used and codegen don't crawl the file system looking for the mapping. You can find the documentation for it here: https://github.com/facebook/react-native-website/pull/4388/files#diff-7fbb6ff2e58f8bd50d2763e551c63e1816adb6d593f40d489785b575b0e82718R76 ## Test Plan Running `pod install` in the `tests-example` will currently hang and eventually crash, as it attempts to crawl through the entire repository.
175 lines
5.5 KiB
JSON
175 lines
5.5 KiB
JSON
{
|
|
"version": "15.10.1",
|
|
"name": "react-native-svg",
|
|
"description": "SVG library for react-native",
|
|
"homepage": "https://github.com/react-native-community/react-native-svg",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/react-native-community/react-native-svg"
|
|
},
|
|
"license": "MIT",
|
|
"main": "lib/commonjs/index.js",
|
|
"module": "lib/module/index.js",
|
|
"types": "lib/typescript/index.d.ts",
|
|
"react-native": "src/index.ts",
|
|
"files": [
|
|
"android",
|
|
"apple",
|
|
"common",
|
|
"lib",
|
|
"src",
|
|
"css",
|
|
"filter-image",
|
|
"RNSVG.podspec",
|
|
"!android/build",
|
|
"windows",
|
|
"react-native.config.js"
|
|
],
|
|
"react-native-builder-bob": {
|
|
"source": "src",
|
|
"output": "lib",
|
|
"targets": [
|
|
"commonjs",
|
|
"module",
|
|
"typescript"
|
|
]
|
|
},
|
|
"keywords": [
|
|
"react-component",
|
|
"react-native",
|
|
"ios",
|
|
"android",
|
|
"windows",
|
|
"SVG",
|
|
"ART",
|
|
"VML",
|
|
"gradient"
|
|
],
|
|
"scripts": {
|
|
"bob": "bob build",
|
|
"format": "yarn format-js && yarn format-ios && yarn format-java",
|
|
"format-ios": "find apple/ common/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i",
|
|
"format-java": "node ./scripts/format-java.js",
|
|
"format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./apps/**/*.{ts,tsx}",
|
|
"jest": "jest",
|
|
"lint": "eslint --ext .ts,.tsx src",
|
|
"peg": "pegjs -o src/lib/extract/transform.js ./src/lib/extract/transform.peg && peggy -o src/filter-image/extract/extractFiltersString.js src/filter-image/extract/extractFiltersString.pegjs && peggy -o src/lib/extract/transformToRn.js src/lib/extract/transformToRn.pegjs",
|
|
"prepare": "npm run bob && husky install",
|
|
"release": "npm login && release-it",
|
|
"test": "npm run lint && npm run tsc",
|
|
"tsc": "tsc --noEmit",
|
|
"e2e": "jest e2e",
|
|
"generateE2eReferences": "ts-node e2e/generateReferences.ts",
|
|
"check-archs-consistency": "node ./scripts/codegen-check-consistency.js",
|
|
"sync-archs": "node ./scripts/codegen-sync-archs.js",
|
|
"metal-to-ci": "node ./scripts/metal.js"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"dependencies": {
|
|
"css-select": "^5.1.0",
|
|
"css-tree": "^1.1.3",
|
|
"warn-once": "0.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
"@react-native-community/eslint-plugin": "^1.2.0",
|
|
"@react-native/babel-plugin-codegen": "^0.75.4",
|
|
"@react-native/babel-preset": "^0.75.4",
|
|
"@react-native/eslint-config": "^0.72.2",
|
|
"@types/css-tree": "^1.0.3",
|
|
"@types/jest": "^27.5.2",
|
|
"@types/node": "*",
|
|
"@types/pixelmatch": "^5.2.0",
|
|
"@types/pngjs": "^6.0.5",
|
|
"@types/react": "^18.2.18",
|
|
"@types/ws": "^8.5.10",
|
|
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
|
"@typescript-eslint/parser": "^5.11.0",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^28.1.0",
|
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
"clang-format": "^1.8.0",
|
|
"eslint": "^8.44.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-config-standard": "^17.0.0",
|
|
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
"eslint-plugin-import": "^2.25.4",
|
|
"eslint-plugin-n": "^16.0.0",
|
|
"eslint-plugin-promise": "^6.1.1",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-standard": "^5.0.0",
|
|
"husky": "^8.0.1",
|
|
"jest": "^28.1.0",
|
|
"jest-html-reporters": "^3.1.7",
|
|
"lint-staged": "^13.0.3",
|
|
"peggy": "4.0.3",
|
|
"pegjs": "^0.10.0",
|
|
"pixelmatch": "5.3.0",
|
|
"pngjs": "^7.0.0",
|
|
"prettier": "3.0.1",
|
|
"puppeteer": "^22.12.1",
|
|
"react": "^18.2.0",
|
|
"react-native": "^0.72.3",
|
|
"react-native-builder-bob": "^0.20.4",
|
|
"react-native-windows": "^0.72.4",
|
|
"react-test-renderer": "^18.2.0",
|
|
"release-it": "^14.12.5",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.1.6",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"lint-staged": {
|
|
"{src,apps/common}/**/*.{js,ts,tsx}": "yarn format-js",
|
|
"src/**/*.{js,ts,tsx}": "yarn lint",
|
|
"apple/**/*.{h,m,mm,cpp}": "yarn format-ios",
|
|
"android/src/**/*.java": "yarn format-java",
|
|
"src/fabric/*.ts": "yarn sync-archs"
|
|
},
|
|
"nativePackage": true,
|
|
"codegenConfig": {
|
|
"name": "rnsvg",
|
|
"type": "all",
|
|
"jsSrcsDir": "./src/fabric",
|
|
"android": {
|
|
"javaPackageName": "com.horcrux.svg"
|
|
},
|
|
"ios": {
|
|
"componentProvider": {
|
|
"RNSVGCircle": "RNSVGCircle",
|
|
"RNSVGClipPath": "RNSVGClipPath",
|
|
"RNSVGDefs": "RNSVGDefs",
|
|
"RNSVGEllipse": "RNSVGEllipse",
|
|
"RNSVGFeBlend": "RNSVGFeBlend",
|
|
"RNSVGFeColorMatrix": "RNSVGFeColorMatrix",
|
|
"RNSVGFeComposite": "RNSVGFeComposite",
|
|
"RNSVGFeFlood": "RNSVGFeFlood",
|
|
"RNSVGFeGaussianBlur": "RNSVGFeGaussianBlur",
|
|
"RNSVGFeMerge": "RNSVGFeMerge",
|
|
"RNSVGFeOffset": "RNSVGFeOffset",
|
|
"RNSVGFilter": "RNSVGFilter",
|
|
"RNSVGForeignObject": "RNSVGForeignObject",
|
|
"RNSVGGroup": "RNSVGGroup",
|
|
"RNSVGImage": "RNSVGImage",
|
|
"RNSVGLine": "RNSVGLine",
|
|
"RNSVGLinearGradient": "RNSVGLinearGradient",
|
|
"RNSVGMarker": "RNSVGMarker",
|
|
"RNSVGMask": "RNSVGMask",
|
|
"RNSVGPath": "RNSVGPath",
|
|
"RNSVGPattern": "RNSVGPattern",
|
|
"RNSVGRadialGradient": "RNSVGRadialGradient",
|
|
"RNSVGRect": "RNSVGRect",
|
|
"RNSVGSvgView": "RNSVGSvgView",
|
|
"RNSVGSymbol": "RNSVGSymbol",
|
|
"RNSVGTSpan": "RNSVGTSpan",
|
|
"RNSVGText": "RNSVGText",
|
|
"RNSVGTextPath": "RNSVGTextPath",
|
|
"RNSVGUse": "RNSVGUse"
|
|
}
|
|
}
|
|
},
|
|
"packageManager": "yarn@1.22.22"
|
|
}
|