feat: transfer specs to ts and remove unnecessary props (#1865)

PR transfering Fabric specs to TS, removing unnecessary @ReactProp adnotations, unifying inheritance hierarchy across platforms, adding custom types for color and image source props so they are parsed by react-native.
This commit is contained in:
Wojciech Lewicki
2022-09-14 12:01:35 +02:00
committed by GitHub
parent f16a08f40f
commit ee6e5da195
112 changed files with 1644 additions and 2137 deletions
-6
View File
@@ -49,12 +49,6 @@ using namespace facebook::react;
self.y = RCTNSStringFromStringNilIfEmpty(newProps.y)
? [RNSVGLength lengthWithString:RCTNSStringFromString(newProps.y)]
: nil;
if (RCTNSStringFromStringNilIfEmpty(newProps.foreignObjectheight)) {
self.foreignObjectheight = [RNSVGLength lengthWithString:RCTNSStringFromString(newProps.foreignObjectheight)];
}
if (RCTNSStringFromStringNilIfEmpty(newProps.foreignObjectwidth)) {
self.foreignObjectwidth = [RNSVGLength lengthWithString:RCTNSStringFromString(newProps.foreignObjectwidth)];
}
if (RCTNSStringFromStringNilIfEmpty(newProps.height)) {
self.foreignObjectheight = [RNSVGLength lengthWithString:RCTNSStringFromString(newProps.height)];
}