Skip to content

Commit bf1c32d

Browse files
authored
feat: add codegen ios.componentProvider (#2572)
# 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.
1 parent 856142e commit bf1c32d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: package.json

+33
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,39 @@
135135
"jsSrcsDir": "./src/fabric",
136136
"android": {
137137
"javaPackageName": "com.horcrux.svg"
138+
},
139+
"ios": {
140+
"componentProvider": {
141+
"RNSVGCircle": "RNSVGCircle",
142+
"RNSVGClipPath": "RNSVGClipPath",
143+
"RNSVGDefs": "RNSVGDefs",
144+
"RNSVGEllipse": "RNSVGEllipse",
145+
"RNSVGFeBlend": "RNSVGFeBlend",
146+
"RNSVGFeColorMatrix": "RNSVGFeColorMatrix",
147+
"RNSVGFeComposite": "RNSVGFeComposite",
148+
"RNSVGFeFlood": "RNSVGFeFlood",
149+
"RNSVGFeGaussianBlur": "RNSVGFeGaussianBlur",
150+
"RNSVGFeMerge": "RNSVGFeMerge",
151+
"RNSVGFeOffset": "RNSVGFeOffset",
152+
"RNSVGFilter": "RNSVGFilter",
153+
"RNSVGForeignObject": "RNSVGForeignObject",
154+
"RNSVGGroup": "RNSVGGroup",
155+
"RNSVGImage": "RNSVGImage",
156+
"RNSVGLine": "RNSVGLine",
157+
"RNSVGLinearGradient": "RNSVGLinearGradient",
158+
"RNSVGMarker": "RNSVGMarker",
159+
"RNSVGMask": "RNSVGMask",
160+
"RNSVGPath": "RNSVGPath",
161+
"RNSVGPattern": "RNSVGPattern",
162+
"RNSVGRadialGradient": "RNSVGRadialGradient",
163+
"RNSVGRect": "RNSVGRect",
164+
"RNSVGSvgView": "RNSVGSvgView",
165+
"RNSVGSymbol": "RNSVGSymbol",
166+
"RNSVGTSpan": "RNSVGTSpan",
167+
"RNSVGText": "RNSVGText",
168+
"RNSVGTextPath": "RNSVGTextPath",
169+
"RNSVGUse": "RNSVGUse"
170+
}
138171
}
139172
},
140173
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)