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:
@@ -27,8 +27,6 @@ RCT_CUSTOM_VIEW_PROPERTY(y, id, RNSVGUse)
|
||||
{
|
||||
view.y = [RCTConvert RNSVGLength:json];
|
||||
}
|
||||
RCT_EXPORT_VIEW_PROPERTY(useheight, RNSVGLength *)
|
||||
RCT_EXPORT_VIEW_PROPERTY(usewidth, RNSVGLength *)
|
||||
RCT_CUSTOM_VIEW_PROPERTY(height, id, RNSVGUse)
|
||||
{
|
||||
view.useheight = [RCTConvert RNSVGLength:json];
|
||||
|
||||
Reference in New Issue
Block a user