mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-02 06:35:04 +00:00
feat: FeBlend (#2489)
# Summary Continuation of #2362 implementing `FeBlend` filter https://www.w3.org/TR/SVG11/filters.html#feBlendElement ## Test Plan Example app → Filters → `FeBlend` ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | macOS | ✅ _*_ | | Android | ✅ | | Web | ✅ |
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#import "RNSVGFilterPrimitiveManager.h"
|
||||
|
||||
@interface RNSVGFeBlendManager : RNSVGFilterPrimitiveManager
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,18 @@
|
||||
#import "RNSVGFeBlendManager.h"
|
||||
#import "RNSVGBlendMode.h"
|
||||
#import "RNSVGFeBlend.h"
|
||||
|
||||
@implementation RNSVGFeBlendManager
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (RNSVGFeBlend *)node
|
||||
{
|
||||
return [RNSVGFeBlend new];
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(in1, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(in2, NSString)
|
||||
RCT_EXPORT_VIEW_PROPERTY(mode, RNSVGBlendMode)
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user