mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-02 06:35:04 +00:00
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:
@@ -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)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user