mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
# Summary Continuation of #2362 implementing `FeFlood` filter https://www.w3.org/TR/SVG11/filters.html#feFloodElement ## Test Plan Example app → Filters → `FeFlood` ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | macOS | ✅ _*_ | | Android | ✅ | | Web | ✅ | _* `canvasWidth/canvasHeight` is incorrect on macOS, so there might be some problems_
17 lines
276 B
Plaintext
17 lines
276 B
Plaintext
#import "RNSVGFeFloodManager.h"
|
|
#import "RNSVGFeFlood.h"
|
|
|
|
@implementation RNSVGFeFloodManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (RNSVGFeFlood *)node
|
|
{
|
|
return [RNSVGFeFlood new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(floodColor, RNSVGBrush)
|
|
RCT_EXPORT_VIEW_PROPERTY(floodOpacity, CGFloat)
|
|
|
|
@end
|