mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
# Summary Continuation of #2316 Introducing new filter `FeGaussianBlur`. ### Implementation notes On Android there is no easy way to fully implement Gaussian blur, as there is no native api for this. While a basic implementation is possible with `RenderScript`, it does not allow for blur in one axis and greater than `25` ## Test Plan Example app -> Filters -> FeGaussianBlur ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ✅ |
20 lines
430 B
Plaintext
20 lines
430 B
Plaintext
#import "RNSVGFeGaussianBlurManager.h"
|
|
#import "RNSVGEdgeMode.h"
|
|
#import "RNSVGFeGaussianBlur.h"
|
|
|
|
@implementation RNSVGFeGaussianBlurManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (RNSVGFeGaussianBlur *)node
|
|
{
|
|
return [RNSVGFeGaussianBlur new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(in1, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(stdDeviationX, NSNumber)
|
|
RCT_EXPORT_VIEW_PROPERTY(stdDeviationY, NSNumber)
|
|
RCT_EXPORT_VIEW_PROPERTY(edgeMode, RNSVGEdgeMode)
|
|
|
|
@end
|