Do not edit this file as changes may cause incorrect behavior and will be lost once the code
+ * is regenerated.
*
* @generated by codegen project: GenerateModuleJavaSpec.js
- *
* @nolint
*/
-
package com.horcrux.svg;
import com.facebook.proguard.annotations.DoNotStrip;
@@ -22,7 +20,8 @@ import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-public abstract class NativeSvgViewModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
+public abstract class NativeSvgViewModuleSpec extends ReactContextBaseJavaModule
+ implements TurboModule {
public static final String NAME = "RNSVGSvgViewModule";
public NativeSvgViewModuleSpec(ReactApplicationContext reactContext) {
@@ -36,5 +35,6 @@ public abstract class NativeSvgViewModuleSpec extends ReactContextBaseJavaModule
@ReactMethod
@DoNotStrip
- public abstract void toDataURL(@Nullable Double tag, @Nullable ReadableMap options, @Nullable Callback callback);
+ public abstract void toDataURL(
+ @Nullable Double tag, @Nullable ReadableMap options, @Nullable Callback callback);
}
diff --git a/apple/Elements/RNSVGSvgView.h b/apple/Elements/RNSVGSvgView.h
index e589dad3..fa900d7b 100644
--- a/apple/Elements/RNSVGSvgView.h
+++ b/apple/Elements/RNSVGSvgView.h
@@ -63,6 +63,10 @@
- (RNSVGNode *)getDefinedMask:(NSString *)maskName;
+- (void)defineFilter:(RNSVGNode *)filter filterName:(NSString *)filterName;
+
+- (RNSVGNode *)getDefinedFilter:(NSString *)filterName;
+
- (NSString *)getDataURLWithBounds:(CGRect)bounds;
- (CGRect)getContextBounds;
diff --git a/apple/Elements/RNSVGSvgView.mm b/apple/Elements/RNSVGSvgView.mm
index eca7cd34..61b188ee 100644
--- a/apple/Elements/RNSVGSvgView.mm
+++ b/apple/Elements/RNSVGSvgView.mm
@@ -25,6 +25,7 @@
NSMutableDictionary extends Component<
+ P & FilterPrimitiveCommonProps
+> {
+ [x: string]: unknown;
+ root: (FilterPrimitive & NativeMethods) | null = null;
+
+ static defaultPrimitiveProps = {
+ x: '0%',
+ y: '0%',
+ width: '100%',
+ height: '100%',
+ };
+
+ refMethod: (instance: (FilterPrimitive & NativeMethods) | null) => void = (
+ instance: (FilterPrimitive & NativeMethods) | null
+ ) => {
+ this.root = instance;
+ };
+
+ setNativeProps = (props: P) => {
+ this.root?.setNativeProps(props);
+ };
+}
diff --git a/src/fabric/CircleNativeComponent.ts b/src/fabric/CircleNativeComponent.ts
index 40f2b945..260ea3aa 100644
--- a/src/fabric/CircleNativeComponent.ts
+++ b/src/fabric/CircleNativeComponent.ts
@@ -45,6 +45,7 @@ interface SvgRenderableCommonProps {
strokeMiterlimit?: Float;
vectorEffect?: WithDefault